Skip to content

Commit 771163f

Browse files
fixup! Wrap all requests.exceptions.RequestException as TrinoConnectionError
1 parent 9d417d6 commit 771163f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

trino/exceptions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ class TrinoAuthError(OperationalError):
6767
pass
6868

6969

70+
class TrinoConnectionError(OperationalError):
71+
pass
72+
73+
7074
class TrinoDataError(NotSupportedError):
7175
pass
7276

@@ -149,7 +153,3 @@ class Http503Error(HttpError):
149153

150154
class Http504Error(HttpError):
151155
pass
152-
153-
154-
class TrinoConnectionError(HttpError):
155-
pass

0 commit comments

Comments
 (0)