Skip to content
This repository has been archived by the owner on Oct 27, 2020. It is now read-only.

Commit

Permalink
HOTFIX: re-add error catching for !plot
Browse files Browse the repository at this point in the history
  • Loading branch information
Marenthyu committed Oct 11, 2016
1 parent d889465 commit 7b8804d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sopel-modules/rat-board.py
Original file line number Diff line number Diff line change
Expand Up @@ -1712,12 +1712,12 @@ def cmd_plot(bot, trigger):
things[0] = things[0].strip()
things[1] = things[1].strip()
bot.say('Plotting route from ' + things[0] + ' to ' + things[1] + ' - Please be patient...')
# try:
elements = _plotRouteTo(bot, trigger, starsystem.getSystemFromDB(bot, sysname=things[1]),
try:
elements = _plotRouteTo(bot, trigger, starsystem.getSystemFromDB(bot, sysname=things[1]),
starsystem.getSystemFromDB(bot, sysname=things[0]), batched)
# except:
# bot.say('Error during plotting. Most likely a system does not exist!')
# return NOLIMIT
except:
bot.say('Error during plotting. Most likely a system does not exist!')
return NOLIMIT
i = 1
element = elements.get(0)
lyintstr = str(element['distance'])
Expand Down

0 comments on commit 7b8804d

Please sign in to comment.