diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2011-07-08 21:41:00 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2011-07-08 21:41:00 +1200 |
commit | 65fbb7bd0dab5d4ff85bbf77239c1ff23748b826 (patch) | |
tree | 172f53871f9c6cb7fac53a8f92df272706e75d38 /libmproxy/console.py | |
parent | 8e176c2086bee1c83165b1000dd980fa62e3b51e (diff) | |
download | mitmproxy-65fbb7bd0dab5d4ff85bbf77239c1ff23748b826.tar.gz mitmproxy-65fbb7bd0dab5d4ff85bbf77239c1ff23748b826.tar.bz2 mitmproxy-65fbb7bd0dab5d4ff85bbf77239c1ff23748b826.zip |
Bail out if no command was specified after | shortcut.
Diffstat (limited to 'libmproxy/console.py')
-rw-r--r-- | libmproxy/console.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libmproxy/console.py b/libmproxy/console.py index f8920964..d99dd8ac 100644 --- a/libmproxy/console.py +++ b/libmproxy/console.py @@ -508,7 +508,8 @@ class ConnectionView(WWrap): return key def run_script(self, path): - self.master._runscript(self.flow, path) + if path: + self.master._runscript(self.flow, path) class _PathCompleter: |