Bubble [main]

Print the exception message in the log

=> e25910e7a95131eb8fd97cb36fbac3e1a5a800d5

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__)
+            print(fatal)
             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'
-            except:
+            except Exception as x:
+                import traceback; traceback.print_tb(x.__traceback__)
+                print(x)
                 return 51, 'Invalid icon index'
         page = f'Select icon for u/{session.user.name}:\n\n'
         for idx, avatar in enumerate(AVATARS):
Proxy Information
Original URL
gemini://git.skyjake.fi/bubble/main/cdiff/e25910e7a95131eb8fd97cb36fbac3e1a5a800d5
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
25.057041 milliseconds
Gemini-to-HTML Time
0.372497 milliseconds

This content has been proxied by September (ba2dc).