Commit 9d417d6
committed
Wrap all requests.exceptions.RequestException as TrinoConnectionError
Before this change if a user needed to catch connection errors (e.g.
connection refused) they needed to add a dependency on requests and
import the relevant exception from requests.exceptions module.
After this change all requests exception get rethrown as a
TrinoConnectionError instead.1 parent b7055ff commit 9d417d6
2 files changed
+16
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
803 | 803 | | |
804 | 804 | | |
805 | 805 | | |
806 | | - | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
807 | 810 | | |
808 | 811 | | |
809 | 812 | | |
| |||
834 | 837 | | |
835 | 838 | | |
836 | 839 | | |
837 | | - | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
838 | 844 | | |
839 | 845 | | |
840 | 846 | | |
| |||
852 | 858 | | |
853 | 859 | | |
854 | 860 | | |
855 | | - | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
856 | 865 | | |
857 | 866 | | |
858 | 867 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
0 commit comments