From fdb16287cecc8e39935d944fb2f8f462bf4cf647 Mon Sep 17 00:00:00 2001 From: Mallory Hancock Date: Thu, 12 Sep 2019 10:13:57 -0700 Subject: [PATCH] remove unused variable --- pinhook/bot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pinhook/bot.py b/pinhook/bot.py index fde7725..2df123c 100644 --- a/pinhook/bot.py +++ b/pinhook/bot.py @@ -102,7 +102,7 @@ class Bot(irc.bot.SingleServerIRCBot): self.logger.info('loading plugin {}'.format(name)) fp, pathname, description = imp.find_module(name, [self.plugin_dir]) imp.load_module(name, fp, pathname, description) - except Exception as e: + except Exception: self.logger.exception('could not load plugin') # gather all commands and listeners if self.use_prefix_for_plugins: # use prefixes if needed @@ -179,7 +179,7 @@ class Bot(irc.bot.SingleServerIRCBot): ops=self.ops, logger=self.logger )) - except Exception as e: + except Exception: self.logger.exception('issue with command {}'.format(cmd)) else: for lstnr in pinhook.plugin.lstnrs: @@ -200,7 +200,7 @@ class Bot(irc.bot.SingleServerIRCBot): )) if listen_output: output = listen_output - except Exception as e: + except Exception: self.logger.exception('issue with listener {}'.format(lstnr)) if output: self.logger.debug(f'returning output: {output.msg}')