Skip to content

Commit

Permalink
po_mode: add pylint: disable=broad-except
Browse files Browse the repository at this point in the history
  • Loading branch information
racicLuka committed May 8, 2024
1 parent f87ca3f commit c0ca8c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions checkmk_weblate_syncer/po.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def _process_po_file_pair(
)
LOGGER.exception(e)
return _Failure(e.stderr)
except Exception as e:
except Exception as e: # pylint: disable=broad-except
LOGGER.error("Checking formatting errors failed")
LOGGER.exception(e)
return _Failure(str(e))
Expand All @@ -116,7 +116,7 @@ def _process_po_file_pair(
)
try:
checkmk_po_file.write_text(po_file_content)
except Exception as e:
except Exception as e: # pylint: disable=broad-except
LOGGER.error("Writing stripped .po file failed: %s", checkmk_po_file_path)
LOGGER.exception(e)
return _Failure(str(e))
Expand Down

0 comments on commit c0ca8c0

Please sign in to comment.