Commit 3aa2a071 authored by Aljaž Srebrnič's avatar Aljaž Srebrnič
Browse files

Print exceptions when they happen

parent 50f07448
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -43,7 +43,8 @@ def main():
            socket.send_string(f"{topic} {stage_name}")
            print(f"Sending event {stage_name} ({stage_mapped})")
        except Exception as e:
            pass
            print("Exception occurred in callback")
            print(e)

    scene = conn.add_stream(getattr, conn.krpc, 'current_game_scene')
    scene.add_callback(unlock)