summarylogtreecommitdiffstats
path: root/address_error.patch
diff options
context:
space:
mode:
Diffstat (limited to 'address_error.patch')
-rw-r--r--address_error.patch14
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)