]> www.vanbest.org Git - motioneye-debian/commitdiff
motionctl _get_pid fix
authorCalin Crisan <ccrisan@gmail.com>
Mon, 20 Jan 2014 07:54:48 +0000 (09:54 +0200)
committerCalin Crisan <ccrisan@gmail.com>
Mon, 20 Jan 2014 07:54:48 +0000 (09:54 +0200)
src/motionctl.py

index 6b2910c3082e63354ae752ec445a4eb796bffc77..004e8557ba2e6e2f66b7a59bf0012f6d191fcb9c 100644 (file)
@@ -152,5 +152,5 @@ def _get_pid():
         with open(motion_pid_path, 'r') as f:
             return int(f.readline().strip())
         
-    except IOError, ValueError:
+    except (IOError, ValueError):
         return None