mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Merge pull request #1708 from EdwardBetts/patch-1
Handle the case where module.__file__ is None.
This commit is contained in:
commit
8e479865d5
@ -28,7 +28,7 @@ class Reloader(threading.Thread):
|
|||||||
fnames = [
|
fnames = [
|
||||||
re.sub('py[co]$', 'py', module.__file__)
|
re.sub('py[co]$', 'py', module.__file__)
|
||||||
for module in list(sys.modules.values())
|
for module in list(sys.modules.values())
|
||||||
if hasattr(module, '__file__')
|
if getattr(module, '__file__', None)
|
||||||
]
|
]
|
||||||
|
|
||||||
with self._extra_files_lock:
|
with self._extra_files_lock:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user