Skip to content

Commit

Permalink
prevent crash if PID is invalid on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
mjfrisby committed Oct 13, 2024
1 parent 7441db6 commit 23504ff
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,11 @@ def excepthook(exc_type, exc_value, exc_tb):
G.ipc_instance.reload_aircraft_signal.connect(G.main_window.force_reload_aircraft)
G.ipc_instance.start()

HapticEffect.device.buttonPressed.connect(G.main_window.get_active_buttons)
HapticEffect.device.buttonReleased.connect(G.main_window.get_active_buttons)
try:
HapticEffect.device.buttonPressed.connect(G.main_window.get_active_buttons)
HapticEffect.device.buttonReleased.connect(G.main_window.get_active_buttons)
except:
pass

launch_children()

Expand Down

0 comments on commit 23504ff

Please sign in to comment.