Always log exception for DesktopNotification failure
Also remove unused ``exc`` variable.
This commit is contained in:
parent
429c5d4865
commit
bafc492c45
@ -68,10 +68,9 @@ else:
|
|||||||
notification.set_urgency(self.URGENCY_LUT[self.urgency])
|
notification.set_urgency(self.URGENCY_LUT[self.urgency])
|
||||||
try:
|
try:
|
||||||
return notification.show()
|
return notification.show()
|
||||||
except Exception as exc:
|
except Exception:
|
||||||
self.logger.error(
|
self.logger.exception(
|
||||||
'Failed to display desktop notification (is a '
|
'Failed to display desktop notification (is a '
|
||||||
'notification daemon running?)',
|
'notification daemon running?)'
|
||||||
exc_info=self.log_level <= logging.DEBUG
|
|
||||||
)
|
)
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user