Skip to content
Browse files

Fix pserve --reload on Py3 (the simple solution)

This is the simpler fix for `pserve --reload` (so please pull either #1244 or this).

Basically with some project setups the reloader thread is guaranteed to crash on Python 3 as the main thread is importing modules in the other thread.
  • Loading branch information...
1 parent c444a31 commit 606a54cc890b345fc001b603a23f7990c9c58407 @ztane ztane committed Feb 16, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 pyramid/scripts/pserve.py
View
2 pyramid/scripts/pserve.py
@@ -811,7 +811,7 @@ def check_reload(self):
print(
"Error calling reloader callback %r:" % file_callback)
traceback.print_exc()
- for module in sys.modules.values():
+ for module in list(sys.modules.values()):
try:
filename = module.__file__
except (AttributeError, ImportError):

0 comments on commit 606a54c

Please sign in to comment.
Something went wrong with that request. Please try again.