Skip to content

Commit

Permalink
Merge pull request #2637 from camptocamp/test-generated-legend-images
Browse files Browse the repository at this point in the history
Fix code can be None
  • Loading branch information
sbrunner authored Dec 2, 2024
2 parents c32a1e3 + 30767b0 commit a162544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tilecloud_chain/store/postgresql.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def _start_job(
main(final_command, out)
_LOGGER.info("Successfully ran the command `%s` using the function directly", display_command)
except SystemExit as exception:
if exception.code != 0:
if exception.code is not None and exception.code != 0:
_LOGGER.exception("Error while running the command `%s`", display_command)
error = True
except Exception: # pylint: disable=broad-exception-caught
Expand Down

0 comments on commit a162544

Please sign in to comment.