Skip to content

Commit

Permalink
fix(deprecations.py): fix for cases result is None
Browse files Browse the repository at this point in the history
closes #423
  • Loading branch information
jossef committed Oct 5, 2020
1 parent 9951ec1 commit c00d5c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tlslite/utils/deprecations.py
Expand Up @@ -41,7 +41,7 @@ def _func(*args, **kwargs):
# isinstance(old_name(), new_name) to work
frame = inspect.currentframe().f_back
code = inspect.getframeinfo(frame).code_context
if [line for line in code
if code and [line for line in code
if '{0}('.format(old_name) in line]:
_warn()
else:
Expand Down

0 comments on commit c00d5c7

Please sign in to comment.