Skip to content

Commit

Permalink
Merge pull request #105 from lostsnow/fix/gevent-patch
Browse files Browse the repository at this point in the history
fixes scope with gevent patch
  • Loading branch information
lostsnow committed Jan 10, 2022
2 parents a98d092 + 5fa1bb1 commit 49ea5b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dongtai_agent_python/utils/scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

class ScopeContext(threading.local):
def __init__(self):
if not hasattr(self, '_active_scopes'):
self._active_scopes = []
self._active_scopes = []

@property
def active_scopes(self):
Expand Down

0 comments on commit 49ea5b2

Please sign in to comment.