Skip to content

Commit

Permalink
Fix invalid call to setattr
Browse files Browse the repository at this point in the history
Signed-off-by: Jean Snyman <git@jsnyman.com>
  • Loading branch information
stringlytyped committed Feb 15, 2024
1 parent e6ec507 commit 45a1362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keylime/web/base/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def __init__(self, **options):
# If options are set by the caller, use these to override the defaults and those set by the implementing class
for opt in ["host", "http_port", "https_port", "max_upload_size", "ssl_ctx"]:
if opt in options:
setattr(f"_{opt}", options[opt])
setattr(self, f"_{opt}", options[opt])

if not self.host:
raise ValueError(f"server '{self.__class__.__name__}' cannot be initialised without a value for 'host'")
Expand Down

0 comments on commit 45a1362

Please sign in to comment.