Cannot delete stalled download from journal #1987
This commit is contained in:
parent
845d2534e6
commit
883fefe782
@ -68,10 +68,9 @@ class Bundle(object):
|
|||||||
def __init__(self, path):
|
def __init__(self, path):
|
||||||
self._path = path
|
self._path = path
|
||||||
self._zip_root_dir = None
|
self._zip_root_dir = None
|
||||||
|
self._zip_file = None
|
||||||
|
|
||||||
if os.path.isdir(self._path):
|
if not os.path.isdir(self._path):
|
||||||
self._zip_file = None
|
|
||||||
else:
|
|
||||||
self._zip_file = zipfile.ZipFile(self._path)
|
self._zip_file = zipfile.ZipFile(self._path)
|
||||||
self._check_zip_bundle()
|
self._check_zip_bundle()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user