except Exception as err:
reply = traceback.format_exc(err)
self.log.exception('An error occurred processing: {0}: {1}'.format(body, reply))
except Exception as err:
reply = traceback.format_exc(err)
self.log.exception('An error occurred processing: {0}: {1}'.format(body, reply))
help_cmd = ('Type {}help <command name>'.format(self.prefix) +
' to get more info about that specific command.')
if not args:
help_cmd = ('Type {}help <command name>'.format(self.prefix) +
' to get more info about that specific command.')
if not args:
usage = usage + '\n\n' + help_cmd
text = '{}\n\n{}'.format(description, usage)
else:
usage = usage + '\n\n' + help_cmd
text = '{}\n\n{}'.format(description, usage)
else: