diff --git a/.python-version b/.python-version new file mode 100644 index 000000000..e4fba2183 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.12 diff --git a/tilecloud_chain/store/postgresql.py b/tilecloud_chain/store/postgresql.py index df37d5475..fa3908077 100644 --- a/tilecloud_chain/store/postgresql.py +++ b/tilecloud_chain/store/postgresql.py @@ -589,6 +589,8 @@ def delete_one(self, tile: Tile) -> Tile: """Delete the meta tile from the queue.""" with self.SessionMaker() as session: if tile.error: + if isinstance(tile.error, Exception): + _LOGGER.warning("Error while processing the tile %s", tile, exc_info=tile.error) sqlalchemy_tile = ( session.query(Queue) .where(and_(Queue.status == _STATUS_PENDING, Queue.id == tile.postgresql_id)) # type: ignore[attr-defined]