Skip to content

Commit

Permalink
fix linting, add default value for empty allowlist
Browse files Browse the repository at this point in the history
  • Loading branch information
craddm committed Jan 24, 2025
1 parent 47be4b0 commit 3d43574
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data_safe_haven/allowlist/allowlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ def __init__(
]
self.share_name = sre_stack.output("allowlist_share_name")
self.filename = sre_stack.output("allowlist_share_filenames")[repository.value]
self.allowlist = allowlist
self.allowlist = str(allowlist) if allowlist else ""

@classmethod
def from_remote(
cls=type[Self],
cls: type[Self],
*,
context: Context,
repository: AllowlistRepository,
Expand Down

0 comments on commit 3d43574

Please sign in to comment.