diff --git a/pywb/manager/manager.py b/pywb/manager/manager.py index 06de6e57..a770b725 100644 --- a/pywb/manager/manager.py +++ b/pywb/manager/manager.py @@ -228,6 +228,8 @@ def _add_wacz_index(self, collection_index_path, wacz_index_path, filename_mappi wacz_index = open(wacz_index_path, 'rb') for line in wacz_index: + if not line: + continue cdx_object = CDXObject(cdxline=line) if cdx_object['filename'] in filename_mapping: cdx_object['filename'] = filename_mapping[cdx_object['filename']]