Closed qixiang closed 1 year ago
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.
error
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
In 31cc4ca, we added retry mechanism when Pyxis request timeout, however we detect the Pyxis request timeout by:
error
is actually a dict, not a string, so this doesn't work.W503 warning in Flake8 goes against PEP 8 recommendation, disable it to make it compatible with black.
https://peps.python.org/pep-0008/#should-a-line-break-before-or-after-a-binary-operator