Make sure args are always str

This commit is contained in:
Philipp Hörist 2019-01-10 22:07:52 +01:00
parent 418459b634
commit 5b1f8bcc48
1 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ class Notification:
def _nec_notification(self, obj):
if obj.do_popup:
icon_name = self._get_icon_name(obj)
self.popup(obj.popup_event_type, obj.jid, obj.conn.name,
self.popup(obj.popup_event_type, str(obj.jid), obj.conn.name,
obj.popup_msg_type, icon_name=icon_name,
title=obj.popup_title, text=obj.popup_text,
timeout=obj.popup_timeout)
@ -219,7 +219,7 @@ class Notification:
@staticmethod
def _make_id(*args):
return ','.join(args)
return ','.join(map(str, args))
class PopupNotification(Gtk.Window):