Change ResponseCode enum value name
This commit is contained in:
parent
d63f5636d4
commit
c36c2ebdbd
2 changed files with 3 additions and 3 deletions
|
@ -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",
|
||||
|
|
|
@ -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])
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue