Skip to content

Commit

Permalink
Merge pull request #1708 from EdwardBetts/patch-1
Browse files Browse the repository at this point in the history
Handle the case where module.__file__ is None.
  • Loading branch information
benoitc authored Feb 19, 2018
2 parents d32f4ca + 0f527a0 commit 8e47986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gunicorn/reloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def get_files(self):
fnames = [
re.sub('py[co]$', 'py', module.__file__)
for module in list(sys.modules.values())
if hasattr(module, '__file__')
if getattr(module, '__file__', None)
]

with self._extra_files_lock:
Expand Down

0 comments on commit 8e47986

Please sign in to comment.