Skip to content

Commit

Permalink
feat: add Web WC error message prompt for ID 3 (fixes #113)
Browse files Browse the repository at this point in the history
  • Loading branch information
blueset committed Jan 5, 2022
1 parent d697495 commit 58e447b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Added
- Remove log in session file before reauth attempts if the file is older than 5 minutes.
- Add support to App Message type 4
- Avoid including repetitive quotations (`#122`_)
- Add Web WC error message prompt for ID 3 (`#113`_)

Changed
-------
Expand Down Expand Up @@ -114,3 +115,4 @@ First release.
.. _2.0.5: https://ews.1a23.studio/compare/v2.0.4...v2.0.5
.. _#108: https://github.com/ehForwarderBot/efb-wechat-slave/issues/108
.. _#122: https://github.com/ehForwarderBot/efb-wechat-slave/issues/122
.. _#123: https://github.com/ehForwarderBot/efb-wechat-slave/issues/123
3 changes: 3 additions & 0 deletions efb_wechat_slave/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,9 @@ def substitute_known_error_reason(self, err: wxpy.ResponseError) -> wxpy.Respons
elif err.err_code == 1205:
err.err_msg = self._("You might have sent your messages too fast. Please try to slow down "
"and retry after a while.")
elif err.err_code == 3:
err.err_msg = self._("Your mobile WeChat client is offline for too long. Please ensure your mobile"
"WeChat client is always online.")
else:
err.err_msg = self._("This is an unknown error from Web WeChat which we know nothing about why this "
"is happening. If you have seen a pattern or if you happen to know the reason "
Expand Down
2 changes: 1 addition & 1 deletion efb_wechat_slave/__version__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# coding: utf-8

__version__ = "2.0.6.dev7"
__version__ = "2.0.6.dev8"

0 comments on commit 58e447b

Please sign in to comment.