Skip to content

Commit

Permalink
Change: Update type hint for GvmError class
Browse files Browse the repository at this point in the history
The message is optional actually.
  • Loading branch information
bjoernricks authored and greenbonebot committed Jun 14, 2024
1 parent a309455 commit 3f3652a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gvm/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class GvmError(Exception):
Base class for all exceptions originating in python-gvm.
"""

def __init__(self, message: str, *args):
def __init__(self, message: Optional[str], *args):
super().__init__(message, *args)
self.message = message

Expand Down

0 comments on commit 3f3652a

Please sign in to comment.