Onionr/src/onionrutils/updater/__init__.py
2019-11-21 02:23:58 -06:00

8 lines
317 B
Python

import notifier
def update_event(bl):
"""Show update notification if available, return bool of if update happened"""
if not bl.isSigner(onionrvalues.UPDATE_SIGN_KEY): raise onionrexceptions.InvalidUpdate
onionr.notifier.notify(message="A new Onionr update is available. Stay updated to remain secure.")