From 7b8804de4c08546a7a214a318711e9a949a1ec43 Mon Sep 17 00:00:00 2001 From: Marenthyu Date: Tue, 11 Oct 2016 23:09:45 +0200 Subject: [PATCH] HOTFIX: re-add error catching for !plot --- sopel-modules/rat-board.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sopel-modules/rat-board.py b/sopel-modules/rat-board.py index c92831c..ee6431a 100644 --- a/sopel-modules/rat-board.py +++ b/sopel-modules/rat-board.py @@ -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'])