Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 567640b

Browse files
fix: fix style, add comments
1 parent 0e35644 commit 567640b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

postgrest/_sync/request_builder.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ def execute(self) -> APIResponse[_ReturnT]:
9090
raise APIError(r.json()) from e
9191
except JSONDecodeError:
9292
raise APIError(generate_default_error_message(r))
93+
except Exception as e:
94+
raise APIError(r.json())
9395

9496

9597
class SyncSingleRequestBuilder(Generic[_ReturnT]):
@@ -146,6 +148,8 @@ def execute(self) -> SingleAPIResponse[_ReturnT]:
146148
raise APIError(r.json()) from e
147149
except JSONDecodeError:
148150
raise APIError(generate_default_error_message(r))
151+
except Exception as e:
152+
raise APIError(r.json())
149153

150154

151155
class SyncMaybeSingleRequestBuilder(SyncSingleRequestBuilder[_ReturnT]):

0 commit comments

Comments
 (0)