Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
Fix #1888: Concurrent imports cause error in force_pydevd
Browse files Browse the repository at this point in the history
Iterate over a snapshot of sys.modules when checking loaded modules.
  • Loading branch information
int19h committed Oct 31, 2019
1 parent 9498dd2 commit 0e8f1fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ptvsd/_vendored/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def check_modules(project, match, root=None):
root = project_root(project)
extensions = []
unvendored = {}
for modname, mod in sys.modules.items():
for modname, mod in list(sys.modules.items()):
if not match(modname, mod):
continue
if not hasattr(mod, '__file__'): # extension module
Expand Down

0 comments on commit 0e8f1fa

Please sign in to comment.