Skip to content

Commit 324f28a

Browse files
committed
[client rework]: Disable exceptions-related pylint checks
Temporary disable (inline) try-except-raise and broad-except warnings until client exception handling is revised (#1312). Signed-off-by: Teodora Sechkova <[email protected]>
1 parent 4bfd889 commit 324f28a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tuf/client_rework/updater_rework.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ def download_target(self, target: Dict, destination_directory: str):
160160
destination_directory, target["filepath"]
161161
)
162162
securesystemslib.util.persist_temp_file(temp_obj, filepath)
163+
# pylint: disable=try-except-raise
163164
except Exception:
164165
# TODO: do something with exceptions
165166
raise
@@ -182,6 +183,7 @@ def _mirror_meta_download(self, filename: str, upper_length: int) -> TextIO:
182183
temp_obj.seek(0)
183184
yield temp_obj
184185

186+
# pylint: disable=broad-except
185187
except Exception as exception:
186188
file_mirror_errors[file_mirror] = exception
187189

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

210212
temp_obj.seek(0)
211213
yield temp_obj
212-
214+
# pylint: disable=broad-except
213215
except Exception as exception:
214216
file_mirror_errors[file_mirror] = exception
215217

@@ -280,7 +282,7 @@ def _load_root(self) -> None:
280282
for temp_obj in mirror_download:
281283
try:
282284
verified_root = self._verify_root(temp_obj)
283-
285+
# pylint: disable=try-except-raise
284286
except Exception:
285287
raise
286288

0 commit comments

Comments
 (0)