Skip to content

Commit

Permalink
🐕fix email os check
Browse files Browse the repository at this point in the history
  • Loading branch information
iofu728 committed Apr 9, 2019
1 parent 69c079e commit 253676c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def send_email(context: str, subject: str) -> bool:
send email
"""

if not os.path.exists('%semailSend' % data_dir) or os.path.exists('%semailRec' % data_dir):
if not os.path.exists('%semailSend' % data_dir) or not os.path.exists('%semailRec' % data_dir):
print('email send/Rec list not exist!!!')
return
with codecs.open('%semailSend' % data_dir, 'r', encoding='utf-8') as f:
Expand Down

0 comments on commit 253676c

Please sign in to comment.