1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Display importerror tracebacks

This commit is contained in:
Steffo 2020-02-03 17:19:19 +01:00
parent 026f1e5b6e
commit aa74c8f859
3 changed files with 5 additions and 3 deletions

View file

@ -5,7 +5,7 @@
[tool.poetry]
name = "royalnet"
version = "5.3.4"
version = "5.4a2"
description = "A multipurpose bot and web framework"
authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"]
license = "AGPL-3.0+"

View file

@ -1,6 +1,7 @@
import logging
import importlib
import asyncio as aio
import sys
from typing import *
from sqlalchemy.schema import Table
from royalnet.commands import *
@ -40,7 +41,8 @@ class Serf:
try:
packs[pack_name] = importlib.import_module(pack_name)
except ImportError as e:
log.error(f"{e.__class__.__name__} during the import of {pack_name}: {e}")
log.error(f"{e.__class__.__name__} during the import of {pack_name}:\n"
f"{traceback.format_exception(*sys.exc_info())}")
log.info(f"Packs: {len(packs)} imported")
self.alchemy: Optional[ra.Alchemy] = None

View file

@ -1 +1 @@
semantic = "5.4"
semantic = "5.4a2"