Fixed bug when additional feature == "events"

A list that was not created cannot be deleted. This has been fixed now.
This commit is contained in:
Ace 2019-03-13 00:35:33 +01:00 committed by GitHub
parent fd77a39a32
commit 47b081e23e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -386,10 +386,13 @@ def main():
print('______Powering off the E-Paper until the next loop______'+'\n')
epd.sleep()
del events_this_month[:]
del upcoming[:]
del rss_feed[:]
del news[:]
del events_this_month
del upcoming
if additional_feature == "rss":
del rss_feed
del news
del buffer
del image
del improved_image