From 73e598c000036961f2edae00aa002597e73adf98 Mon Sep 17 00:00:00 2001 From: totaam Date: Thu, 15 Apr 2021 14:53:07 +0700 Subject: [PATCH] #3089 check availability of file transfers before using the function --- xpra/server/mixins/server_base_controlcommands.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xpra/server/mixins/server_base_controlcommands.py b/xpra/server/mixins/server_base_controlcommands.py index 2172301b98..3be0fbbdef 100644 --- a/xpra/server/mixins/server_base_controlcommands.py +++ b/xpra/server/mixins/server_base_controlcommands.py @@ -276,8 +276,9 @@ def control_command_open_url(self, url, client_uuids="*"): raise ControlError("no clients found matching: %s" % client_uuids) clients = 0 for ss in sources: - if ss.send_open_url(url): - clients += 1 + if hasattr(ss, "send_open_url"): + if ss.send_open_url(url): + clients += 1 return "url sent to %i clients" % clients def control_command_send_file(self, filename, openit="open", client_uuids="*", maxbitrate=0):