diff --git a/depocs/__init__.py b/depocs/__init__.py index 1585b7b..a19943d 100644 --- a/depocs/__init__.py +++ b/depocs/__init__.py @@ -240,12 +240,10 @@ def open(self, call_site_level=1): self._Scoped__is_used = True try: - frame = sys._getframe(call_site_level) + self._Scoped__open_site_frame = sys._getframe(call_site_level) except ValueError: # No frame found, skip pass - else: - self._Scoped__open_site_frame = frame return self diff --git a/pyproject.toml b/pyproject.toml index 90084bd..24ee998 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "depocs" -version = "2.0.0.dev1" +version = "2.1.0" homepage = "https://github.com/sdelements/depocs" description = "Scoped thread-local mixin class" authors = ["Security Compass "]