From 7583a4e761cfe78437a27e189574cdc776e14bed Mon Sep 17 00:00:00 2001 From: Brian Hoffman Date: Sun, 28 Apr 2019 13:08:32 -0400 Subject: [PATCH] fix for https://github.com/reprozip-news-apps/reprozip-web/issues/9 --- reprounzip/unpackers/dj.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reprounzip/unpackers/dj.py b/reprounzip/unpackers/dj.py index 8b6dca1..c5a10c1 100644 --- a/reprounzip/unpackers/dj.py +++ b/reprounzip/unpackers/dj.py @@ -449,7 +449,11 @@ def pack_it(args): def record(args): - WARCPacker.no_second_pass(args.pack[0]) + try: + WARCPacker.no_second_pass(args.pack[0]) + except AttributeError: + pass + if args.skip_record: pack_it(args) return