Close sessions after telegram calls

This commit is contained in:
Matthias 2023-03-17 20:41:11 +01:00
parent d808dd49e8
commit b0a7b64d44
1 changed files with 2 additions and 0 deletions

View File

@ -83,6 +83,8 @@ def authorized_only(command_handler: Callable[..., None]) -> Callable[..., Any]:
self._send_msg(str(e))
except BaseException:
logger.exception('Exception occurred within Telegram module')
finally:
Trade.session.remove()
return wrapper