diff --git a/python-api/gstswitch/Makefile b/python-api/gstswitch/Makefile new file mode 100644 index 0000000..e69de29 diff --git a/python-api/gstswitch/server.py b/python-api/gstswitch/server.py index 32e0182..0bb08aa 100644 --- a/python-api/gstswitch/server.py +++ b/python-api/gstswitch/server.py @@ -183,8 +183,8 @@ def _start_process(self, cmd): shell=False) print cmd return process - except OSError as e: - if e.errno == ENOENT: + except OSError as error: + if error.errno == ENOENT: raise PathError("Cannot find gst-switch-srv at path:" " '{0}'".format(self.path)) else: