mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-14 21:51:32 -05:00
Ignore attribute error when optimistically trying to cancel compression (we may have no ZipWriter object yet)
This commit is contained in:
parent
eaa3a152b0
commit
c58fb43795
@ -56,5 +56,8 @@ class CompressThread(QtCore.QThread):
|
|||||||
|
|
||||||
# Let the Web and ZipWriter objects know that we're canceling compression early
|
# Let the Web and ZipWriter objects know that we're canceling compression early
|
||||||
self.mode.web.cancel_compression = True
|
self.mode.web.cancel_compression = True
|
||||||
if self.mode.web.zip_writer:
|
try:
|
||||||
self.mode.web.zip_writer.cancel_compression = True
|
self.mode.web.zip_writer.cancel_compression = True
|
||||||
|
except AttributeError:
|
||||||
|
# we never made it as far as creating a ZipWriter object
|
||||||
|
pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user