Skip to content

Commit dc248db

Browse files
committed
move new except to proper location
1 parent 397e644 commit dc248db

File tree

1 file changed

+3
-3
lines changed
  • Metro/Metro_RP2350_Match3/match3_game

1 file changed

+3
-3
lines changed

Metro/Metro_RP2350_Match3/match3_game/code.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,6 @@
266266
+ f"endpoint_address: {hex(mouse_endpoint_address)}"
267267
)
268268
mouse_sync.append(0)
269-
except usb.core.USBError as e:
270-
# The mouse might have glitched and may not be detected but at least we don't crash
271-
print(e)
272269

273270
# detach kernel driver if needed
274271
kernel_driver_active_flags.append(device.is_kernel_driver_active(0))
@@ -278,6 +275,9 @@
278275
# set the mouse configuration so it can be used
279276
device.set_configuration()
280277

278+
except usb.core.USBError as e:
279+
# The mouse might have glitched and may not be detected but at least we don't crash
280+
print(e)
281281

282282
def is_mouse1_left_clicked():
283283
"""

0 commit comments

Comments
 (0)