remove unused variable

pull/74/head
Mallory Hancock 2019-09-12 10:13:57 -07:00
parent bb7ff3fdea
commit fdb16287ce
1 changed files with 3 additions and 3 deletions

View File

@ -102,7 +102,7 @@ class Bot(irc.bot.SingleServerIRCBot):
self.logger.info('loading plugin {}'.format(name)) self.logger.info('loading plugin {}'.format(name))
fp, pathname, description = imp.find_module(name, [self.plugin_dir]) fp, pathname, description = imp.find_module(name, [self.plugin_dir])
imp.load_module(name, fp, pathname, description) imp.load_module(name, fp, pathname, description)
except Exception as e: except Exception:
self.logger.exception('could not load plugin') self.logger.exception('could not load plugin')
# gather all commands and listeners # gather all commands and listeners
if self.use_prefix_for_plugins: # use prefixes if needed if self.use_prefix_for_plugins: # use prefixes if needed
@ -179,7 +179,7 @@ class Bot(irc.bot.SingleServerIRCBot):
ops=self.ops, ops=self.ops,
logger=self.logger logger=self.logger
)) ))
except Exception as e: except Exception:
self.logger.exception('issue with command {}'.format(cmd)) self.logger.exception('issue with command {}'.format(cmd))
else: else:
for lstnr in pinhook.plugin.lstnrs: for lstnr in pinhook.plugin.lstnrs:
@ -200,7 +200,7 @@ class Bot(irc.bot.SingleServerIRCBot):
)) ))
if listen_output: if listen_output:
output = listen_output output = listen_output
except Exception as e: except Exception:
self.logger.exception('issue with listener {}'.format(lstnr)) self.logger.exception('issue with listener {}'.format(lstnr))
if output: if output:
self.logger.debug(f'returning output: {output.msg}') self.logger.debug(f'returning output: {output.msg}')