Skip to content

Commit 9b3ed39

Browse files
committed
Handle unknown dot commands
1 parent a4498ab commit 9b3ed39

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/sqlite3/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ def runsource(self, source, filename="<input>", symbol="single"):
5656
print("Enter SQL code and press enter.")
5757
case "quit":
5858
sys.exit(0)
59+
case _:
60+
print('Error: unknown command or invalid arguments: "spam". Enter ".help" for help')
5961
else:
6062
if not sqlite3.complete_statement(source):
6163
return True

0 commit comments

Comments
 (0)