From 4c9621972ab3766522682a84557ed85194903dd4 Mon Sep 17 00:00:00 2001 From: "Schimon Jehudah, Adv." Date: Tue, 22 Oct 2024 20:27:29 +0300 Subject: [PATCH] Python : Fix generation of QR Code. --- fasi.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fasi.py b/fasi.py index 74f63e9..e8f5839 100644 --- a/fasi.py +++ b/fasi.py @@ -611,7 +611,6 @@ class HttpInstance: if jid_kind: # Action and instance type action, instance = XmppUtilities.set_action_instance_type(jid_kind, node_name) - link_href = XmppUtilities.get_link_href(jid_bare, jid_kind, node_name) view_href = XmppUtilities.get_view_href(jid_bare, jid_kind, node_name) xmpp_uri = XmppUtilities.get_xmpp_uri(jid_bare, jid_kind, node_name) else: # jid_info['error'] @@ -619,13 +618,15 @@ class HttpInstance: instance = view_href = '' message = '{}: {} (XEP-0030)'.format(jid_info['text'], jid_info['condition']) xmpp_uri = jid_bare + link_href = XmppUtilities.get_link_href(jid_bare, jid_kind, node_name) # Query URI links print('Query URI links') links = XmppUtilities.get_query_uri_links(jid_bare, jid_kind, node_name) # Graphic files - filename, filepath, filetype, selection = FileUtilities.handle_photo(jid_bare, jid_vcard, link_href) + filename, filepath, filetype, selection = FileUtilities.handle_photo( + jid_bare, jid_vcard, link_href) #except Exception as e: else: @@ -720,7 +721,7 @@ class HttpInstance: return response @self.app.exception_handler(403) - def not_found_exception_handler(request: Request, exc: HTTPException): + def access_denied_exception_handler(request: Request, exc: HTTPException): action = 'Warning' title = 'Access Denied' return result_get(request, action, title)