Skip to content

Commit aedee30

Browse files
committed
cli/__init__.py: avoid using newline escape characters
1 parent 709e6f1 commit aedee30

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pybricksdev/cli/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,10 @@ async def reconnect_hub():
298298
return
299299

300300
except SyntaxError as e:
301-
print("\nA syntax error occurred while parsing your program:")
302-
print(e, "\n")
301+
print()
302+
print("A syntax error occurred while parsing your program:")
303+
print(e)
304+
print()
303305

304306
except HubPowerButtonPressedError:
305307
# This means the user pressed the button on the hub to re-start the

0 commit comments

Comments
 (0)