From e66c50951c1c0e44a21253d124c82a1bc78ae449 Mon Sep 17 00:00:00 2001 From: rbignon Date: Mon, 8 Aug 2016 05:17:05 +0200 Subject: [PATCH] correctly re-raise exception to keep backtrace (#2944) --- pokecli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pokecli.py b/pokecli.py index a77cf378c9..e00389e06e 100644 --- a/pokecli.py +++ b/pokecli.py @@ -53,7 +53,7 @@ def main(): bot = False - + try: logger.info('PokemonGO Bot v1.0') sys.stdout = codecs.getwriter('utf8')(sys.stdout) @@ -130,7 +130,7 @@ def main(): if bot: report_summary(bot) - raise e + raise def report_summary(bot): if bot.metrics.start_time is None: