Skip to content

Commit

Permalink
fix: Reloaded chokes on modules without __file__
Browse files Browse the repository at this point in the history
Fixes #1455 (again)
  • Loading branch information
defnull committed Sep 26, 2024
1 parent c60fcc3 commit 5740f17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bottle.py
Original file line number Diff line number Diff line change
Expand Up @@ -3997,7 +3997,7 @@ def run(self):
files = dict()

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

Expand Down

0 comments on commit 5740f17

Please sign in to comment.