Skip to content

Commit

Permalink
better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jrabbit committed Nov 25, 2017
1 parent 3dccd9f commit 86f3fb1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hitman.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def growl(text):
notified = True
if not notified:
try:
logger.info("nortificatons gnome gi???")
logger.info("notificatons gnome gi???")
import gi
gi.require_version('Notify', '0.7')
from gi.repository import Notify
Expand All @@ -169,7 +169,7 @@ def growl(text):
Notify.uninit()
notified = True
except ImportError:
pass
logger.exception()
elif platform.system() == 'Haiku':
os.system("notify --type information --app Hitman --title 'Status Report' '%s'" % str(text))
elif platform.system() == 'Windows':
Expand All @@ -178,8 +178,8 @@ def growl(text):
toaster = ToastNotifier()
toaster.show_toast(text, "Hitman")
# gntplib.publish("Hitman", "Status Update", "Hitman", text=text)
except Exception as e:
logger.error(e)
except Exception:
logger.exception()
# print("Exception")
else:
pass
Expand Down

0 comments on commit 86f3fb1

Please sign in to comment.