From 5539b55afe95f20c8bf0cc40a26be623ac7b3ae2 Mon Sep 17 00:00:00 2001 From: alyssadev Date: Sun, 13 Feb 2022 04:02:17 +1000 Subject: [PATCH] update gitignore --- .gitignore | 1 + nntpdl.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 8d35cb3..6470ea7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ __pycache__ *.pyc +dl/ diff --git a/nntpdl.py b/nntpdl.py index 848081e..19ef5a5 100644 --- a/nntpdl.py +++ b/nntpdl.py @@ -50,8 +50,8 @@ def get_file(message_ids, group=None, filename=None, sizes=None): try: f += get_part(m, group=group) except NNTPTemporaryError: - debug(f"Couldn't get that article, adding 0x00 * {str(sizes[n])}") - f += b"\0" * sizes[n] + debug(f"Couldn't get that article, skipping") + #f += b"\0" * sizes[n] continue if filename: with open(os.path.join(dest, filename), "wb") as fh: