From 978ea17d02ecf7a93d255d6a44c46d9f15d52d5e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 10 Apr 2022 11:37:37 +0100 Subject: [PATCH] Check for handle --- daemon.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/daemon.py b/daemon.py index 6497b3d7b..688dc63e2 100644 --- a/daemon.py +++ b/daemon.py @@ -2212,7 +2212,7 @@ class PubServer(BaseHTTPRequestHandler): search_handle = \ search_nickname + '@' + search_domain else: - search_handle = None + search_handle = '' if '@' not in search_handle: if search_handle.startswith('http'): search_nickname = \ @@ -2223,7 +2223,7 @@ class PubServer(BaseHTTPRequestHandler): search_handle = \ search_nickname + '@' + search_domain else: - search_handle = None + search_handle = '' if '@' not in search_handle: # is this a local nickname on this instance? local_handle = \ @@ -2232,8 +2232,10 @@ class PubServer(BaseHTTPRequestHandler): '/accounts/' + local_handle): search_handle = local_handle else: - search_handle = None - if not search_handle: + search_handle = '' + if search_handle is None: + search_handle = '' + if '@' in search_handle: msg = \ html_account_info(self.server.css_cache, self.server.translate,