From e25910e7a95131eb8fd97cb36fbac3e1a5a800d5 Mon Sep 17 00:00:00 2001

From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi

Date: Mon, 15 May 2023 22:25:18 +0300

Subject: [PATCH 1/1] Print the exception message in the log


50_bubble.py | 1 +

settings.py | 4 +++-

2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/50_bubble.py b/50_bubble.py

index 9404038..43d7282 100644

--- a/50_bubble.py

+++ b/50_bubble.py

@@ -53,6 +53,7 @@ class Bubble:

     except Exception as fatal:

         import traceback

         traceback.print_tb(fatal.__traceback__)

         return 42, 'Bubble Error: ' + str(fatal)[:500].replace('\n', ' ')

     finally:

         db.close()

diff --git a/settings.py b/settings.py

index 2786883..d52c1e7 100644

--- a/settings.py

+++ b/settings.py

@@ -97,7 +97,9 @@ def make_settings_page(session):

                 return 51, 'Not found'

             db.update_user(session.user, avatar=AVATARS[idx][0])

             return 30, '/settings/profile'

             return 51, 'Invalid icon index'

     page = f'Select icon for u/{session.user.name}:\n\n'

     for idx, avatar in enumerate(AVATARS):

--

2.25.1

Proxy Information
Original URL
gemini://git.skyjake.fi/bubble/main/patch/e25910e7a95131eb8fd97cb36fbac3e1a5a800d5.patch
Status Code
Success (20)
Meta
text/plain
Capsule Response Time
28.757986 milliseconds
Gemini-to-HTML Time
0.55373 milliseconds

This content has been proxied by September (ba2dc).