diff options
Diffstat (limited to 'src/linux')
-rw-r--r-- | src/linux/ogOperations.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/linux/ogOperations.py b/src/linux/ogOperations.py index 9a806af..7f70f2b 100644 --- a/src/linux/ogOperations.py +++ b/src/linux/ogOperations.py @@ -195,6 +195,8 @@ class OgLinuxOperations: shell=True, executable=OG_SHELL) (output, error) = ogRest.proc.communicate() + if (ogRest.proc.returncode): + raise Exception except: raise ValueError('Error: Incorrect command value') |