Skip to content

Commit

Permalink
Updated Exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwatkot committed Dec 20, 2024
1 parent 3092da3 commit 90d11b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maps4fs/generator/grle.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def _add_farmlands(self) -> None:
# pylint: disable=no-member
try:
cv2.fillPoly(image, [field_np], farmland_id) # type: ignore
except cv2.error as e: # pylint: disable=E0712
except Exception as e: # pylint: disable=W0718
self.logger.warning(
"Farmland %s could not be added to the InfoLayer PNG file with error: %s",
farmland_id,
Expand Down

0 comments on commit 90d11b1

Please sign in to comment.