Handle new Tor controller errors in GUI

This commit is contained in:
Micah Lee 2016-12-29 10:34:40 -08:00
parent ebf13cfa11
commit fa7bec2fae
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -177,11 +177,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
self.app.start_onion_service()
self.starting_server_step2.emit()
except onionshare.onion.NoTor as e:
self.starting_server_error.emit(e.args[0])
return
except onionshare.onion.TorTooOld as e:
except (onionshare.onion.NoTor, onionshare.onion.TorTooOld, onionshare.onion.TorErrorInvalidSetting, onionshare.onion.TorErrorSocketPort, onionshare.onion.TorErrorSocketFile, onionshare.onion.TorErrorMissingPassword, onionshare.onion.TorErrorUnreadableCookieFile) as e:
self.starting_server_error.emit(e.args[0])
return