Skip to content

Commit 998c60b

Browse files
committed
Implementing code rabbit comments
1 parent c6bc18b commit 998c60b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/writers/writer_postgres.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def write(self, topic_name: str, message: Dict[str, Any]) -> Tuple[bool, Optiona
306306
return False, msg
307307

308308
connection.commit()
309-
except (RuntimeError, PsycopgError) as e:
309+
except (RuntimeError, PsycopgError, BotoCoreError, ClientError) as e:
310310
err_msg = f"The Postgres writer failed with unknown error: {str(e)}"
311311
logger.exception(err_msg)
312312
return False, err_msg

0 commit comments

Comments
 (0)