Compare commits

..

No commits in common. "56b1f12a4a2ad5cad32de938a70bbf7bb7dd2652" and "4fc3e74bbdc752704860216122de2ac9566d592a" have entirely different histories.

1 changed files with 1 additions and 8 deletions

View File

@ -7,7 +7,6 @@ from typing import Callable, Optional, List
from asyncpg import create_pool
from json import dumps, loads
from pkg_resources import iter_entry_points
from traceback import print_exc
import risotto
from .utils import _
from .error import RegistrationError
@ -320,13 +319,7 @@ class RegisterDispatcher:
await log.info_msg(risotto_context,
None,
info_msg)
try:
await module.on_join(risotto_context)
except Exception as err:
if get_config()['global']['debug']:
print_exc()
msg = _(f'on_join returns an error in module {submodule_name}: {err}')
await log.error_msg(risotto_context, {}, msg)
await module.on_join(risotto_context)
async def load(self):
# valid function's arguments