We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e30c9e6 commit 9a38369Copy full SHA for 9a38369
secure_logger/decorators.py
@@ -51,7 +51,7 @@ def wrapper(*args, **kwargs):
51
name_of_class = func.__name__
52
else:
53
# case 2: a class method
54
- if inspect.isclass(args[0]):
+ if len(args) > 0 and inspect.isclass(args[0]):
55
cls = args[0].__class__
56
name_of_module = cls.__module__
57
name_of_class = cls.__name__ + "()"
0 commit comments