We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0b34ad commit d1c1309Copy full SHA for d1c1309
pybricksdev/cli/__init__.py
@@ -359,6 +359,10 @@ async def reconnect_hub():
359
case _:
360
return
361
362
+ except SyntaxError as e:
363
+ print("\nA syntax error occurred when parsing your program:")
364
+ print(e, "\n")
365
+
366
except HubPowerButtonPressedError:
367
# This means the user pressed the button on the hub to re-start the
368
# current program, so the menu was canceled and we are now printing
0 commit comments