Skip to content

Commit 5740f17

Browse files
committed
fix: Reloaded chokes on modules without __file__
Fixes #1455 (again)
1 parent c60fcc3 commit 5740f17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bottle.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3997,7 +3997,7 @@ def run(self):
39973997
files = dict()
39983998

39993999
for module in list(sys.modules.values()):
4000-
path = getattr(module, '__file__') or ''
4000+
path = getattr(module, '__file__', '') or ''
40014001
if path[-4:] in ('.pyo', '.pyc'): path = path[:-1]
40024002
if path and exists(path): files[path] = mtime(path)
40034003

0 commit comments

Comments
 (0)