|
@@ -27,19 +27,19 @@ class Proc:
|
|
|
# Exit code
|
|
# Exit code
|
|
|
try:
|
|
try:
|
|
|
ret['code'] = proc.returncode
|
|
ret['code'] = proc.returncode
|
|
|
- except:
|
|
|
|
|
|
|
+ except Exception:
|
|
|
pass
|
|
pass
|
|
|
|
|
|
|
|
# Decode outputs
|
|
# Decode outputs
|
|
|
if hasattr(proc, 'stdout') and len(proc.stdout) > 0:
|
|
if hasattr(proc, 'stdout') and len(proc.stdout) > 0:
|
|
|
try:
|
|
try:
|
|
|
ret['out'] = proc.stdout.decode(self.encoding)
|
|
ret['out'] = proc.stdout.decode(self.encoding)
|
|
|
- except:
|
|
|
|
|
|
|
+ except Exception:
|
|
|
pass
|
|
pass
|
|
|
if hasattr(proc, 'stderr') and len(proc.stderr) > 0:
|
|
if hasattr(proc, 'stderr') and len(proc.stderr) > 0:
|
|
|
try:
|
|
try:
|
|
|
ret['err'] = proc.stderr.decode(self.encoding)
|
|
ret['err'] = proc.stderr.decode(self.encoding)
|
|
|
- except:
|
|
|
|
|
|
|
+ except Exception:
|
|
|
pass
|
|
pass
|
|
|
|
|
|
|
|
# Return
|
|
# Return
|