Skip to content

Commit

Permalink
Merge pull request squeaky-pl#66 from ObviouslyGreen/master
Browse files Browse the repository at this point in the history
Use copy of sys.modules.items() to avoid runtime error in reloader
  • Loading branch information
squeaky-pl authored Apr 16, 2017
2 parents 1896ed1 + 99e685e commit 5e15535
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 5e15535

Please sign in to comment.