UsergeTeam / Userge

Exceptions are overlapping PYL-W0714
Anti-pattern
Major
3 months ago3 months old
Overlapping exceptions (ImportError is an ancestor class of ModuleNotFoundError)
259    """ import custom modules dynamically """
260    try:
261        return importlib.import_module(req_module)
262    except (ModuleNotFoundError, ImportError):263        if re_raise:
264            raise
265