From 7029bb39e233f9ed294c1592d26c05fc6b090a1a Mon Sep 17 00:00:00 2001 From: SorenDeveloppement <63002111+SorenDeveloppement@users.noreply.github.com> Date: Fri, 8 Mar 2024 11:25:50 +0100 Subject: [PATCH] Update main.py Fixing an Error: TypeError: catching classes that do not inherit from BaseException is not allowed --- ursina/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ursina/main.py b/ursina/main.py index fd041510..bebaa2b1 100644 --- a/ursina/main.py +++ b/ursina/main.py @@ -118,7 +118,7 @@ def __init__(self, title='ursina', icon='textures/ursina.ico', borderless=True, try: from ursina import gamepad - except e as Exception: + except Exception as e: print(e) if application.window_type != 'none':