mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Display importerror tracebacks
This commit is contained in:
parent
026f1e5b6e
commit
aa74c8f859
3 changed files with 5 additions and 3 deletions
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "royalnet"
|
name = "royalnet"
|
||||||
version = "5.3.4"
|
version = "5.4a2"
|
||||||
description = "A multipurpose bot and web framework"
|
description = "A multipurpose bot and web framework"
|
||||||
authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"]
|
authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"]
|
||||||
license = "AGPL-3.0+"
|
license = "AGPL-3.0+"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import logging
|
import logging
|
||||||
import importlib
|
import importlib
|
||||||
import asyncio as aio
|
import asyncio as aio
|
||||||
|
import sys
|
||||||
from typing import *
|
from typing import *
|
||||||
from sqlalchemy.schema import Table
|
from sqlalchemy.schema import Table
|
||||||
from royalnet.commands import *
|
from royalnet.commands import *
|
||||||
|
@ -40,7 +41,8 @@ class Serf:
|
||||||
try:
|
try:
|
||||||
packs[pack_name] = importlib.import_module(pack_name)
|
packs[pack_name] = importlib.import_module(pack_name)
|
||||||
except ImportError as e:
|
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")
|
log.info(f"Packs: {len(packs)} imported")
|
||||||
|
|
||||||
self.alchemy: Optional[ra.Alchemy] = None
|
self.alchemy: Optional[ra.Alchemy] = None
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
semantic = "5.4"
|
semantic = "5.4a2"
|
||||||
|
|
Loading…
Reference in a new issue