Skip to content

Commit

Permalink
Merge pull request #283 from Carreau/fix-281
Browse files Browse the repository at this point in the history
Fixes #281
  • Loading branch information
dshivashankar1994 authored Feb 1, 2024
2 parents 538d86b + 6a55404 commit d86dc5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/python/pyflyby/_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ def filename(self):
# Get the filename using loader.get_filename(). Note that this does
# more than just loader.filename: for example, it adds /__init__.py
# for packages.
if not hasattr(loader, 'get_filename'):
return None
filename = loader.get_filename()
if not filename:
return None
Expand Down

0 comments on commit d86dc5b

Please sign in to comment.