diff --git a/lib/nntp/tiny/session.py b/lib/nntp/tiny/session.py index f76e510..08e4dc7 100644 --- a/lib/nntp/tiny/session.py +++ b/lib/nntp/tiny/session.py @@ -189,7 +189,7 @@ class Session(): def _cmd_listgroup(self, *args): newsgroup = self.newsgroup - + if len(args) == 0 and newsgroup is None: return self.respond(ResponseCode.NNTP_NEWSGROUP_NOT_SELECTED) elif len(args) > 0: @@ -287,7 +287,7 @@ class Session(): def _parse_date_time(self, datestr: str, timestr: str): yyyy, mm, dd = None, None, None, hh, MM, ss = None, None, None - + match = self.RE_DATE_SHORT.match(datestr) if match: yy, mm, dd = map(int, match[1:3])