Skip to content

Commit

Permalink
correctly re-raise exception to keep backtrace (#2944)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbignon authored and solderzzc committed Aug 8, 2016
1 parent a1733b9 commit e66c509
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pokecli.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

def main():
bot = False

try:
logger.info('PokemonGO Bot v1.0')
sys.stdout = codecs.getwriter('utf8')(sys.stdout)
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit e66c509

Please sign in to comment.