sim.pysim: in write_vcd(), close files if an exception is raised.
authorwhitequark <whitequark@whitequark.org>
Thu, 27 Aug 2020 08:33:48 +0000 (08:33 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Dec 2021 15:11:20 +0000 (15:11 +0000)
commitd9daa8abc61ccff70eeaceeebca5afd39d2aae06
tree3191d6e734461c789820012ae0849908d6a9817a
parent9a910d3d9735538234961d07c82e7c929a509773
sim.pysim: in write_vcd(), close files if an exception is raised.

This also avoids leaving the waveform writer list in an inconsistent
state after an exception.
nmigen/sim/pysim.py