Skip to content

Commit

Permalink
fix(context): context id is an int, value is a str (#629)
Browse files Browse the repository at this point in the history
This makes sure both are strings
  • Loading branch information
jefflembeck authored Jul 10, 2023
1 parent eda8e98 commit 148f635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/devtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,7 @@ def set_execution_context(self, target):
if key in ['id', 'name', 'origin'] and len(value):
for id in self.execution_contexts:
context = self.execution_contexts[id]
if key in context and context[key] == value:
if key in context and str(context[key]) == str(value):
self.execution_context = id
break
else:
Expand Down

0 comments on commit 148f635

Please sign in to comment.