bug fixes
This commit is contained in:
parent
484740bb50
commit
28bc471a19
@ -98,7 +98,10 @@ def installZipFile(data, fname):
|
|||||||
# folder; ignore
|
# folder; ignore
|
||||||
continue
|
continue
|
||||||
# write
|
# write
|
||||||
z.extract(n, base)
|
try:
|
||||||
|
z.extract(n, base)
|
||||||
|
except:
|
||||||
|
print(n)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
@ -121,7 +124,7 @@ def updateSingle(repositories, path, data):
|
|||||||
urlthread.join()
|
urlthread.join()
|
||||||
response = urlthread.response#urllib2.urlopen(code)
|
response = urlthread.response#urllib2.urlopen(code)
|
||||||
meta = response.info()
|
meta = response.info()
|
||||||
file_size = int(meta.get("Content-Length"))
|
file_size = int(meta.getheaders("Content-Length")[0])
|
||||||
except:
|
except:
|
||||||
appendHtml('Downloading file error!<br/>')
|
appendHtml('Downloading file error!<br/>')
|
||||||
return
|
return
|
||||||
|
|||||||
@ -98,7 +98,10 @@ def installZipFile(data, fname):
|
|||||||
# folder; ignore
|
# folder; ignore
|
||||||
continue
|
continue
|
||||||
# write
|
# write
|
||||||
z.extract(n, base)
|
try:
|
||||||
|
z.extract(n, base)
|
||||||
|
except:
|
||||||
|
print(n)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user