Always log exception for DesktopNotification failure

Also remove unused ``exc`` variable.
This commit is contained in:
Erik Johnson 2016-09-20 12:53:06 -05:00
parent 429c5d4865
commit bafc492c45

View File

@ -68,10 +68,9 @@ else:
notification.set_urgency(self.URGENCY_LUT[self.urgency])
try:
return notification.show()
except Exception as exc:
self.logger.error(
except Exception:
self.logger.exception(
'Failed to display desktop notification (is a '
'notification daemon running?)',
exc_info=self.log_level <= logging.DEBUG
'notification daemon running?)'
)
return False