Skip to content

Commit

Permalink
Handle "None" strings robustly
Browse files Browse the repository at this point in the history
  • Loading branch information
rseichter committed Apr 2, 2021
1 parent 62800f3 commit 0a5d279
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions automx2/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ def unique() -> str:


def expand_placeholders(string: str, local_part: str, domain_part: str) -> str:
if not string:
return ''
placeholder_map = {
PLACEHOLDER_ADDRESS: f'{local_part}@{domain_part}',
PLACEHOLDER_DOMAIN: domain_part,
Expand Down

0 comments on commit 0a5d279

Please sign in to comment.