Skip to content

Commit

Permalink
2.023 correctly display 1013 error message
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion committed Aug 21, 2021
1 parent 651440f commit 23e5da8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xeHentai/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def _do_task(self, task_guid):
mon.vote(tid, 0)),
lambda x, tid = tid: (
mon.vote(tid, x[0]),
self.logger.warn(i18n.XEH_SCAN_FAILED % (tid, x[1], x[0])),
self.logger.warn(i18n.XEH_SCAN_FAILED % (tid, x[1], i18n.c(x[0]))),
),
mon.wrk_keepalive,
util.get_proxy_policy(task.config),
Expand Down
3 changes: 2 additions & 1 deletion xeHentai/i18n/en_us.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
ERR_CONNECTION_ERROR: "a connection problem occurs",
ERR_IP_BANNED: "IP has been banned, retry in %s",
ERR_IMAGE_BROKEN: "downloaded image is broken",
ERR_SCAN_REGEX_FAILED: "page parsing failed",
ERR_QUOTA_EXCEEDED: "quota exceeded",
ERR_TASK_NOT_FOUND: "no such task guid",
ERR_TASK_LEVEL_UNDEF: "task filter level unknown",
Expand Down Expand Up @@ -118,7 +119,7 @@
XEH_FILE_DOWNLOADED = "file downloaded by thread-{} #{} {}"
XEH_RENAME_HAS_ERRORS = "some files are not renamed:\n%s"
XEH_DOWNLOAD_HAS_ERROR = "thread-%s retry #%s because of error: %s"
XEH_SCAN_FAILED = "%s scan page #%s failed: %d"
XEH_SCAN_FAILED = "%s scan page %s failed: %d"

RPC_STARTED = "RPC server listening on %s:%d"
RPC_TOO_OPEN = "RPC server is listening on public interface (%s) but no rpc_secret defined, which is not safe"
Expand Down
1 change: 1 addition & 0 deletions xeHentai/i18n/zh_hans.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
ERR_CONNECTION_ERROR: "连接有问题?",
ERR_IP_BANNED: "IP被ban了, 恢复时间: %s",
ERR_IMAGE_BROKEN: "下载的图片有猫饼",
ERR_SCAN_REGEX_FAILED: "网页解析失败",
ERR_QUOTA_EXCEEDED: "配额超限",
ERR_TASK_NOT_FOUND: "没有该GUID对应的任务",
ERR_TASK_LEVEL_UNDEF: "任务过滤等级不存在",
Expand Down
1 change: 1 addition & 0 deletions xeHentai/i18n/zh_hant.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
ERR_CONNECTION_ERROR: "連接有問題?",
ERR_IP_BANNED: "IP被ban了, 恢復時間: %s",
ERR_IMAGE_BROKEN: "下載的圖片有貓餅",
ERR_SCAN_REGEX_FAILED: "網頁解析失敗",
ERR_QUOTA_EXCEEDED: "配額超限",
ERR_TASK_NOT_FOUND: "沒有該GUID對應的任務",
ERR_TASK_LEVEL_UNDEF: "任務過濾等級不存在",
Expand Down

0 comments on commit 23e5da8

Please sign in to comment.