Skip to content

Commit a8741eb

Browse files
fix: replace 2 bare except clauses with except Exception (#3637)
Replace bare except clauses with except Exception.
1 parent a91a4d5 commit a8741eb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tools/precompiler/precompiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ async def _process_request(self, request: "JsonWorkRequest") -> None:
214214
# We don't send a response because we assume the request that
215215
# triggered cancelling sent the response
216216
raise
217-
except:
217+
except Exception:
218218
_logger.exception("Unhandled error: request=%s", request)
219219
self._send_response(
220220
{

tools/private/update_deps/update_pip_deps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def _get_deps(report: dict) -> list[Dep]:
9696
url=dep["download_info"]["url"],
9797
sha256=dep["download_info"]["archive_info"]["hash"][len("sha256=") :],
9898
)
99-
except:
99+
except Exception:
100100
debug_dep = textwrap.indent(json.dumps(dep, indent=4), " " * 4)
101101
print(f"Could not parse the response from 'pip':\n{debug_dep}")
102102
raise

0 commit comments

Comments
 (0)