Skip to content

Commit 08e9e3a

Browse files
committed
Merge branch 'main' into next-major
2 parents 37b5caf + 10d0a89 commit 08e9e3a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

secure_logger/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Managed via automated CI/CD in .github/workflows/semanticVersionBump.yml.
2-
__version__ = "0.2.0-next-major.1"
2+
__version__ = "0.2.1"

secure_logger/decorators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def wrapper(*args, **kwargs):
5151
name_of_class = func.__name__
5252
else:
5353
# case 2: a class method
54-
if inspect.isclass(args[0]):
54+
if len(args) > 0 and inspect.isclass(args[0]):
5555
cls = args[0].__class__
5656
name_of_module = cls.__module__
5757
name_of_class = cls.__name__ + "()"

0 commit comments

Comments
 (0)