diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2019-01-25 15:18:43 -0500 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2019-01-25 15:18:43 -0500 |
commit | 9c9dff9945046a242f1937d9baefe0637a0785e1 (patch) | |
tree | 9a37b6d1b1246cebe2eccfb78e44dfca80fd2ef7 | |
parent | 6c78a22548ee4ae57489e2467859bd0500b8963b (diff) | |
download | korg-helpers-9c9dff9945046a242f1937d9baefe0637a0785e1.tar.gz |
Cosmetic cleanups for the linter
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rwxr-xr-x | list-archive-maker.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/list-archive-maker.py b/list-archive-maker.py index cf62938..5caf735 100755 --- a/list-archive-maker.py +++ b/list-archive-maker.py @@ -97,15 +97,15 @@ def main(sources, outdir, msgids, listids, rejectsfile): server = nntplib.NNTP(server) resp, count, first, last, name = server.group(group) total = int(last) + def nntp_msg_gen(last): aid = 1 while aid <= last: try: resp, ainfo = server.article(aid) - lines = ainfo[2] message = email.message_from_bytes(b'\n'.join(ainfo[2])) yield message - except nntplib.NNTPTemporaryError as ex: + except nntplib.NNTPTemporaryError: # Ignore one-off article failures -- probably deletes pass finally: |