mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Merge pull request #807 from berkerpeksag/fix-runtimeerror
Fix RuntimeError in gunicorn.reloader.
This commit is contained in:
commit
b2d2ff737e
@ -26,7 +26,7 @@ class Reloader(threading.Thread):
|
||||
def get_files(self):
|
||||
fnames = [
|
||||
re.sub('py[co]$', 'py', module.__file__)
|
||||
for module in sys.modules.values()
|
||||
for module in list(sys.modules.values())
|
||||
if hasattr(module, '__file__')
|
||||
]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user