Skip to content

Commit

Permalink
catch parent exception (ros2#472)
Browse files Browse the repository at this point in the history
Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
  • Loading branch information
dirk-thomas committed Jul 25, 2020
1 parent 3732a24 commit 59506e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ros2bag/test/test_record_qos_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def launch_bag_command(self, arguments, **kwargs):
def tearDownClass(cls):
try:
cls.tmpdir.cleanup()
except PermissionError:
except OSError:
if sys.platform != 'win32':
raise
# HACK to allow Windows to close pending file handles
Expand Down

0 comments on commit 59506e1

Please sign in to comment.