Skip to content

Commit

Permalink
Use copy of sys.modules.items() to avoid runtime error
Browse files Browse the repository at this point in the history
  • Loading branch information
ObviouslyGreen authored Apr 13, 2017
1 parent 1896ed1 commit 99e685e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/japronto/reloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def change_detector():
changed = False
current_mtimes = {}

for name, module in sys.modules.items():
for name, module in list(sys.modules.items()):
try:
filename = module.__file__
except AttributeError:
Expand Down

0 comments on commit 99e685e

Please sign in to comment.