diff options
author | lsf | 2020-11-11 18:53:35 +0100 |
---|---|---|
committer | lsf | 2020-11-11 18:53:35 +0100 |
commit | a7fd83c856ea7e2c9cd944ac52a8181148eecf8f (patch) | |
tree | 55925fdca348d3f2cbc1c1c185f8c76b402f2d55 /address_error.patch | |
download | aur-a7fd83c856ea7e2c9cd944ac52a8181148eecf8f.tar.gz |
initial commit
Diffstat (limited to 'address_error.patch')
-rw-r--r-- | address_error.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/address_error.patch b/address_error.patch new file mode 100644 index 000000000000..3d86165c80ca --- /dev/null +++ b/address_error.patch @@ -0,0 +1,14 @@ +diff --git a/briar_wrapper/api_thread.py b/briar_wrapper/api_thread.py +index 18b5928..7b922b8 100644 +--- a/briar_wrapper/api_thread.py ++++ b/briar_wrapper/api_thread.py +@@ -60,6 +60,8 @@ class ApiThread: + if http_error.code == 404: + return self._api.on_successful_startup(callback) + except URLError as url_error: +- if not isinstance(url_error.reason, ConnectionRefusedError): ++ if (not isinstance(url_error.reason, ConnectionRefusedError) ++ and (isinstance(url_error.reason, OSError) ++ and url_error.reason.errno != 99)): + raise url_error + callback(False) |