Skip to content
Snippets Groups Projects
Commit 8055c098 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[dock] Use IOError in place of FileNotFoundError

FileNotFound is Python 3 only, therefore use its base class
to be compatible with both versions of Python.
parent fc88812b
No related branches found
No related tags found
2 merge requests!32Merge development branch 1.6.x,!27Fix unknown FileNotFoundException
Pipeline #
...@@ -543,7 +543,7 @@ class Host(object): ...@@ -543,7 +543,7 @@ class Host(object):
try: try:
process = sp.Popen(command, stdout=process_stdout, stderr=process_stderr) process = sp.Popen(command, stdout=process_stdout, stderr=process_stderr)
except FileNotFoundError as e: except IOError as e:
if self.raise_on_errors: if self.raise_on_errors:
raise raise
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment