Skip to content

Commit

Permalink
[client rework]: Disable exceptions-related pylint checks
Browse files Browse the repository at this point in the history
Temporary disable (inline) try-except-raise and broad-except
warnings until client exception handling is revised (theupdateframework#1312).

Signed-off-by: Teodora Sechkova <tsechkova@vmware.com>
  • Loading branch information
sechkova committed Mar 23, 2021
1 parent e68eb9c commit d252818
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tuf/client_rework/updater_rework.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ def download_target(self, target: Dict, destination_directory: str):
destination_directory, target["filepath"]
)
securesystemslib.util.persist_temp_file(temp_obj, filepath)
# pylint: disable=try-except-raise
except Exception:
# TODO: do something with exceptions
raise
Expand All @@ -182,6 +183,7 @@ def _mirror_meta_download(self, filename: str, upper_length: int) -> TextIO:
temp_obj.seek(0)
yield temp_obj

# pylint: disable=broad-except
except Exception as exception:
file_mirror_errors[file_mirror] = exception

Expand Down Expand Up @@ -209,7 +211,7 @@ def _mirror_target_download(self, fileinfo: str) -> BinaryIO:

temp_obj.seek(0)
yield temp_obj

# pylint: disable=broad-except
except Exception as exception:
file_mirror_errors[file_mirror] = exception

Expand Down Expand Up @@ -280,7 +282,7 @@ def _load_root(self) -> None:
for temp_obj in mirror_download:
try:
verified_root = self._verify_root(temp_obj)

# pylint: disable=try-except-raise
except Exception:
raise

Expand Down

0 comments on commit d252818

Please sign in to comment.