From 8055c098f6287e11659717e5a75524b63a8828f7 Mon Sep 17 00:00:00 2001
From: Samuel Gaist <samuel.gaist@idiap.ch>
Date: Mon, 4 Jun 2018 08:38:35 +0200
Subject: [PATCH] [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.
---
 beat/core/dock.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/beat/core/dock.py b/beat/core/dock.py
index d6c2f1e4..51a71de7 100755
--- a/beat/core/dock.py
+++ b/beat/core/dock.py
@@ -543,7 +543,7 @@ class Host(object):
 
         try:
             process = sp.Popen(command, stdout=process_stdout, stderr=process_stderr)
-        except FileNotFoundError as e:
+        except IOError as e:
             if self.raise_on_errors:
                 raise
 
-- 
GitLab