redhat-exd-rebuilds / freshmaker

Freshmaker is a service that automatically rebuilds content.
https://redhat-exd-rebuilds.github.io/freshmaker/
MIT License
9 stars 23 forks source link

Fix pyxis timeout retry #240

Closed qixiang closed 1 year ago

qixiang commented 1 year ago
  1. Fix retry for Pyxis request timeout

In 31cc4ca, we added retry mechanism when Pyxis request timeout, however we detect the Pyxis request timeout by:

if "Pyxis API was unable to fetch data from MongoDB in time" in error

error is actually a dict, not a string, so this doesn't work.

  1. Disable flake8 W503

W503 warning in Flake8 goes against PEP 8 recommendation, disable it to make it compatible with black.

W503 line break before binary operator

https://peps.python.org/pep-0008/#should-a-line-break-before-or-after-a-binary-operator