Commit 2384691e by devttys0

Fixed warning that occured if a blank extraction command was speicified.

parent 6cc5f508
...@@ -588,7 +588,7 @@ class Extractor(Module): ...@@ -588,7 +588,7 @@ class Extractor(Module):
raise e raise e
except Exception as e: except Exception as e:
binwalk.core.common.warning("Internal extractor '%s' failed with exception: '%s'" % (str(cmd), str(e))) binwalk.core.common.warning("Internal extractor '%s' failed with exception: '%s'" % (str(cmd), str(e)))
else: elif cmd:
# If not in debug mode, create a temporary file to redirect stdout and stderr to # If not in debug mode, create a temporary file to redirect stdout and stderr to
if not binwalk.core.common.DEBUG: if not binwalk.core.common.DEBUG:
tmp = tempfile.TemporaryFile() tmp = tempfile.TemporaryFile()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment