diff options
author | Micah Lee <micah@micahflee.com> | 2018-10-09 21:29:46 -0700 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2018-10-09 21:32:28 -0700 |
commit | 18f83589aaa4a8d18b4160630acae3d59222278a (patch) | |
tree | e10779cb366b7770962ee970c9eecc22f9ef7140 /onionshare_gui | |
parent | 90172c913b025d011e05794902a55e4f478ffc76 (diff) | |
parent | 1fd647b837ac5e0b1c5dc534ee45d1b95b28f4c4 (diff) | |
download | onionshare-18f83589aaa4a8d18b4160630acae3d59222278a.tar.gz onionshare-18f83589aaa4a8d18b4160630acae3d59222278a.zip |
Merge in develop
Diffstat (limited to 'onionshare_gui')
-rw-r--r-- | onionshare_gui/mode/share_mode/threads.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/onionshare_gui/mode/share_mode/threads.py b/onionshare_gui/mode/share_mode/threads.py index d6022746..24e2c242 100644 --- a/onionshare_gui/mode/share_mode/threads.py +++ b/onionshare_gui/mode/share_mode/threads.py @@ -56,5 +56,8 @@ class CompressThread(QtCore.QThread): # Let the Web and ZipWriter objects know that we're canceling compression early self.mode.web.cancel_compression = True - if self.mode.web.zip_writer: + try: self.mode.web.zip_writer.cancel_compression = True + except AttributeError: + # we never made it as far as creating a ZipWriter object + pass |