Commit 2d8fe13d authored by Maxim Nazarenko's avatar Maxim Nazarenko Committed by Sijis Aviles

fix codestyle

parent 21743ca7
......@@ -103,12 +103,12 @@ def setup_bot(backend_name: str, logger, config, restore=None) -> ErrBot:
try:
if hasattr(config, 'SENTRY_TRANSPORT') and isinstance(config.SENTRY_TRANSPORT, tuple):
mod = importlib.import_module(config.SENTRY_TRANSPORT[1])
transport = getattr(mod, config.SENTRY_TRANSPORT[0])
mod = importlib.import_module(config.SENTRY_TRANSPORT[1])
transport = getattr(mod, config.SENTRY_TRANSPORT[0])
sentryhandler = SentryHandler(config.SENTRY_DSN,
level=config.SENTRY_LOGLEVEL,
transport=transport)
sentryhandler = SentryHandler(config.SENTRY_DSN,
level=config.SENTRY_LOGLEVEL,
transport=transport)
else:
sentryhandler = SentryHandler(config.SENTRY_DSN, level=config.SENTRY_LOGLEVEL)
logger.addHandler(sentryhandler)
......
......@@ -16,7 +16,8 @@ def test_arg(testbot):
assert 'added' in testbot.exec_command('!add_arg')
assert 'string to echo is string_to_echo' in testbot.exec_command('!echo_to_me string_to_echo')
assert 'removed' in testbot.exec_command('!remove_arg')
assert 'Command "echo_to_me" / "echo_to_me string_to_echo" not found' in testbot.exec_command('!echo_to_me string_to_echo')
assert ('Command "echo_to_me" / "echo_to_me string_to_echo" not found'
in testbot.exec_command('!echo_to_me string_to_echo'))
def test_re(testbot):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment