Add reminder if email is not enabled
This commit is contained in:
parent
fca0535b24
commit
f739df494a
|
@ -20,6 +20,7 @@ python -m personal_data
|
|||
- [ ] YouTube (Music): Liked videos with title and URL.
|
||||
- [ ] Steam Wishlist and Achievements
|
||||
- [ ] fredagscafeen.dk
|
||||
- [ ] [WaniKani](https://docs.api.wanikani.com)
|
||||
|
||||
## License
|
||||
|
||||
|
|
|
@ -230,7 +230,10 @@ def main(
|
|||
)
|
||||
logger.info('Scraper done: %s', scraper.dataset_name)
|
||||
|
||||
if status['extended'] and send_email_notification:
|
||||
send_notification(session, scraper_cls.__name__, status['dicts'][-1])
|
||||
if status['extended']:
|
||||
if send_email_notification:
|
||||
send_notification(session, scraper_cls.__name__, status['dicts'][-1])
|
||||
else:
|
||||
logger.info('Email not enabled: Skipping notification')
|
||||
|
||||
del scraper, session
|
||||
|
|
Loading…
Reference in New Issue
Block a user