Skip to content

Commit

Permalink
handle weird six import error
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmojaki committed Sep 30, 2023
1 parent 37070ce commit 53501eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ def sys_modules_sources():
for module in list(sys.modules.values()):
try:
filename = inspect.getsourcefile(module)
except TypeError:
except (TypeError, AttributeError):
continue

if not filename:
Expand Down

0 comments on commit 53501eb

Please sign in to comment.