Skip to content

Commit fa6210b

Browse files
committed
catch more generic exception
1 parent 9e56d4e commit fa6210b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cwltool/job.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ def docker_monitor(self, cidfile, tmpdir_prefix, cleanup_cidfile, process):
707707
if cleanup_cidfile:
708708
try:
709709
os.remove(cidfile)
710-
except PermissionError as exc:
710+
except OSError as exc:
711711
_logger.warn("Ignored error cleaning up Docker cidfile: %s", exc)
712712
return
713713
try:
@@ -725,7 +725,7 @@ def docker_monitor(self, cidfile, tmpdir_prefix, cleanup_cidfile, process):
725725
cid], stdout=stats_file_handle, stderr=subprocess.DEVNULL)
726726
process.wait()
727727
stats_proc.kill()
728-
except PermissionError as exc:
728+
except OSError as exc:
729729
_logger.warn("Ignored error with docker stats: %s", exc)
730730
return
731731
max_mem_percent = 0

0 commit comments

Comments
 (0)