From cd0a81cf28bfa990bb85d660c239a9e45bcb48a6 Mon Sep 17 00:00:00 2001 From: Alessandro Astone Date: Tue, 29 Nov 2022 00:03:42 +0100 Subject: [PATCH] clipboard: Return empty string if error Instead of returning None, which becomes NULL in cython and gets sent through binder to become null in java --- tools/services/clipboard_manager.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/services/clipboard_manager.py b/tools/services/clipboard_manager.py index 2027959..c790efc 100644 --- a/tools/services/clipboard_manager.py +++ b/tools/services/clipboard_manager.py @@ -25,6 +25,7 @@ def start(args): return pyclip.paste() except Exception as e: logging.debug(str(e)) + return "" def service_thread(): while not stopping: -- 2.47.3