Skip to content

Commit b4e2dc7

Browse files
committed
Remove all exception handling
We don't have any anyway
1 parent 1b58b76 commit b4e2dc7

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

examples/json.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,9 @@
3434
# This method is used to show queries and results
3535
def query(sql, bindings=None):
3636
print(f"\n\n{sql}")
37-
try:
38-
result = connection.execute(sql, bindings).fetchall()
39-
if len(result):
40-
pprint(result[0] if len(result) == 1 else result)
41-
except apsw.Error as exc:
42-
print("Exception:", exc)
37+
result = connection.execute(sql, bindings).fetchall()
38+
if len(result):
39+
pprint(result[0] if len(result) == 1 else result)
4340

4441

4542
### json_quick: Quick start

0 commit comments

Comments
 (0)