diff options
Diffstat (limited to 'MgaRepo/util.py')
-rw-r--r-- | MgaRepo/util.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MgaRepo/util.py b/MgaRepo/util.py index 9008a59..1237d12 100644 --- a/MgaRepo/util.py +++ b/MgaRepo/util.py @@ -78,7 +78,8 @@ def execcmd(*cmd, **kwargs): if proc.stdout is not None: output += proc.stdout.read(8192).decode('utf8') # Make sure that we've emptied the buffer entirely - output += proc.stdout.read().decode('utf8') + if proc.stdout is not None: + output += proc.stdout.read().decode('utf8') if kwargs.get("strip", True): output = output.rstrip() |