This commit is contained in:
Miroslav Stampar
2024-01-10 17:48:14 +01:00
parent 27c4e8d29a
commit bfe03ef95a
2 changed files with 5 additions and 1 deletions

View File

@@ -98,6 +98,10 @@ class Custom(object):
query = _input("sql-shell> ")
query = getUnicode(query, encoding=sys.stdin.encoding)
query = query.strip("; ")
except UnicodeDecodeError:
print()
errMsg = "invalid user input"
logger.error(errMsg)
except KeyboardInterrupt:
print()
errMsg = "user aborted"