Skip to content

Commit

Permalink
remove default arg: would fail to encode None if used!
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@17936 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jan 7, 2018
1 parent 3468258 commit 9cdcf10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/xpra/server/server_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1781,7 +1781,7 @@ def control_command_send_notification(self, nid, title, message, client_uuids):
notifylog("control_command_send_notification(%i, %s, %s, %s) will send to sources %s (matching %s)", nid, title, message, client_uuids, sources, client_uuids)
count = 0
for source in sources:
if source.notify(0, nid, "control channel", 0, "", title, message, 10):
if source.notify(0, nid, "control channel", 0, "", title, message, 10, ()):
count += 1
msg = "notification id %i: message sent to %i clients" % (nid, count)
notifylog(msg)
Expand Down
2 changes: 1 addition & 1 deletion src/xpra/server/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -1962,7 +1962,7 @@ def bell(self, wid, device, percent, pitch, duration, bell_class, bell_id, bell_
return
self.send_async("bell", wid, device, percent, pitch, duration, bell_class, bell_id, bell_name)

def notify(self, dbus_id, nid, app_name, replaces_nid, app_icon, summary, body, expire_timeout, icon=None):
def notify(self, dbus_id, nid, app_name, replaces_nid, app_icon, summary, body, expire_timeout, icon):
if not self.send_notifications:
notifylog("client %s does not support notifications", self)
return False
Expand Down

0 comments on commit 9cdcf10

Please sign in to comment.