Update notifications.py

fixed crashing when no internet