diff --git a/lib/nntp/tiny/response.py b/lib/nntp/tiny/response.py index bf56812..4e730fb 100644 --- a/lib/nntp/tiny/response.py +++ b/lib/nntp/tiny/response.py @@ -29,7 +29,7 @@ class ResponseCode(enum.Enum): NNTP_ARTICLE_INVALID_NUMBER = 420 NNTP_ARTICLE_NO_NEXT = 421 NNTP_ARTICLE_NO_PREVIOUS = 422 - NNTP_ARTICLE_NOT_FOUND_NUM = 423 + NNTP_ARTICLE_NOT_FOUND_RANGE = 423 NNTP_ARTICLE_NOT_FOUND_ID = 430 NNTP_POST_PROHIBITED = 440 NNTP_POST_FAILED = 441 @@ -61,7 +61,7 @@ class ResponseCode(enum.Enum): 420: "Current article number is invalid", 421: "No next article in this group", 422: "No previous article in this group", - 423: "No article found by that number", + 423: "No articles found within range", 430: "No article found by that message ID", 440: "Posting prohibited", 441: "Posting failed", diff --git a/lib/nntp/tiny/session.py b/lib/nntp/tiny/session.py index 3dc18d3..c4e3d3a 100644 --- a/lib/nntp/tiny/session.py +++ b/lib/nntp/tiny/session.py @@ -617,7 +617,7 @@ class Session(): row = cr.fetchone() if row is None: - return self.respond(ResponseCode.NNTP_ARTICLE_NOT_FOUND_NUM) + return self.respond(ResponseCode.NNTP_ARTICLE_NOT_FOUND_RANGE) text = "%d %s" % (row[0], row[1])