Skip to content

Commit

Permalink
🐛 fixed the callback function.
Browse files Browse the repository at this point in the history
  • Loading branch information
AirportR committed Jun 16, 2024
1 parent 895b77f commit b046f31
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/cleaner.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ def unsafe_load(name: str, pkg: str) -> bool:
if entry == "__init__.py":
continue
_name, _ext = os.path.splitext(entry)
_name = _name.split(".")[0]
if _ext not in self.module_suffixes:
continue
is_loaded = unsafe_load(_name, _pkg)
Expand Down

0 comments on commit b046f31

Please sign in to comment.