mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-07 06:13:03 -04:00
Merge branch 'mig5-525_catch_failure_to_obtain_service_id'
This commit is contained in:
commit
627ea18f83
1 changed files with 4 additions and 1 deletions
|
@ -413,7 +413,10 @@ class Onion(object):
|
||||||
auth_cookie = res.content()[2][2].split('=')[1].split(':')[1]
|
auth_cookie = res.content()[2][2].split('=')[1].split(':')[1]
|
||||||
self.auth_string = 'HidServAuth {} {}'.format(onion_host, auth_cookie)
|
self.auth_string = 'HidServAuth {} {}'.format(onion_host, auth_cookie)
|
||||||
|
|
||||||
return onion_host
|
if onion_host is not None:
|
||||||
|
return onion_host
|
||||||
|
else:
|
||||||
|
raise TorErrorProtocolError(strings._('error_tor_protocol_error'))
|
||||||
|
|
||||||
def cleanup(self, stop_tor=True):
|
def cleanup(self, stop_tor=True):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue