summaryrefslogtreecommitdiff
path: root/voctocore/lib/notifications.py
blob: 1e101e12cfc9d28063b782a2e4b30606375387b8 (plain)
  1. #!/usr/bin/python3
  2. # If you know a better way to do this, go for it...
  3. import logging
  4. log = logging.getLogger("Notifications")
  5. controlserver = None
  6. def notify_all(msg):
  7. try:
  8. controlserver.notify_all(msg)
  9. except Exception as e:
  10. log.warn(e)