Skip to content

Commit

Permalink
Update read_mailbox.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielTollenaar committed Jul 19, 2024
1 parent a21c416 commit f17d815
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/fotoviewer/read_mailbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def eml_file_name(subject, date_time):
def read_mailbox(inbox:Path|None = INBOX, email_address:str | None = FOTOVIEWER_ADDRESS, password:str | None = FOTOVIEWER_PASS, to_archive=False):
"""Read a simple mailbox (works for hotmail)."""
if (email_address is None) | (password is None):
raise ValueError(f"Both 'email_address'{email_address} and 'password' {password} shouldn't be None")
raise ValueError(f"Both 'email_address' (= {email_address}) and 'password' (= {password}) shouldn't be 'None'. Provide as argument or define FOTOVIEWER_ADDRESS and FOTOVIEWER_PASS environment variables")

# Create inbox and other dirs if do not exist
if inbox is None:
Expand Down

0 comments on commit f17d815

Please sign in to comment.