-
Notifications
You must be signed in to change notification settings - Fork 79
Fixing QiitaClient #1795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixing QiitaClient #1795
Conversation
…fix-rest-api-qiita-client
| # ----------------------------------------------------------------------------- | ||
|
|
||
|
|
||
| class QiitaClientError(Exception): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the plan for these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They're used in the Qiita client and I think there are 3 different errors that the developer using the QiitaClient can decide what to do (either propagate the error or try something else). For example, this allows me to code a different behavior in the _heartbeat function below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
K, thanks.
|
One question, then 👍 when test pass. |
|
@ElDeveloper available for a quick review in here? |
| # This error occurs when the Qiita server is not reachable. This | ||
| # may occur when we are updating the server, and we don't want | ||
| # the job to fail. In this case, we wait for 5 min and try again | ||
| time.sleep(300) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be worth mentioning this in the docstring?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
👍 |
Depends on #1794 so review/merge that one first.
The QiitaClient is improved to reduce workload on the plugin developer.