From 123b04c2b72a6840b705fb117cd55d9b664a258b Mon Sep 17 00:00:00 2001 From: Martinez Date: Mon, 16 May 2016 20:00:46 +0200 Subject: [PATCH] fix over.app.Main.invocation state after parsing --- over/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/over/app.py b/over/app.py index 98469a1..a904a89 100644 --- a/over/app.py +++ b/over/app.py @@ -285,7 +285,7 @@ class Main: remaining_payload_tokens = 0 temporary_payload = [] guard_passed = False - invocation = [] + invocation = [sys.argv[0]] for top_token in cmdline: if not (remaining_payload_tokens or guard_passed) and len(top_token) >= 2 and top_token[0] in "+-" and top_token[1] != "-": # it's a group @@ -351,7 +351,7 @@ class Main: Over Exception handler - prints human readable tracebacks. """ - self.print("unhandled<.> %s<.> encountered" %(exception_type.__name__), self.print.tl.fail, end=":\n") + self.print("uncontained exception<.> %s<.> encountered" %(exception_type.__name__), self.print.tl.fail, end=":\n") # todo top level program name # todo final level exception name and text