mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-30 08:13:29 -05:00
Handles a new exception that gets thrown in Tails using a bridge while waiting for the HS
This commit is contained in:
parent
5b46688367
commit
1f52c9b565
@ -17,7 +17,7 @@ GNU General Public License for more details.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"""
|
||||
import os, sys, subprocess, time, argparse, inspect, shutil, socket, threading, urllib2, tempfile
|
||||
import os, sys, subprocess, time, argparse, inspect, shutil, socket, threading, urllib2, httplib, tempfile
|
||||
import socks
|
||||
|
||||
from stem.control import Controller
|
||||
@ -208,6 +208,9 @@ class OnionShare(object):
|
||||
except urllib2.HTTPError: # Tails error
|
||||
sys.stdout.write('{0:s}\n'.format(strings._('wait_for_hs_nope')))
|
||||
sys.stdout.flush()
|
||||
except httplib.BadStatusLine: # Tails (with bridge) error
|
||||
sys.stdout.write('{0:s}\n'.format(strings._('wait_for_hs_nope')))
|
||||
sys.stdout.flush()
|
||||
except KeyboardInterrupt:
|
||||
return False
|
||||
return True
|
||||
|
Loading…
x
Reference in New Issue
Block a user