Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Commit

Permalink
Update test_mail.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Feb 2, 2020
1 parent c73f411 commit ec49af1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions _unittests/ut_mokadi/test_mail.py
Expand Up @@ -23,8 +23,10 @@ def test_mail(self):
import keyring
user = keyring.get_password("gmail", "botadi,user")
pwd = keyring.get_password("gmail", "botadi,pwd")
if user is None or pwd is None:
raise ValueError("user or pwd is not specified.")
if user is None:
raise ValueError("user is not specified.")
if pwd is None:
raise ValueError("pwd is not specified.")
server = "imap.gmail.com"
try:
mails = enumerate_last_mails(user, pwd, server, fLOG=fLOG)
Expand Down

0 comments on commit ec49af1

Please sign in to comment.