diff options
author | lsf | 2020-09-23 23:29:29 +0200 |
---|---|---|
committer | lsf | 2020-09-23 23:29:29 +0200 |
commit | 817e5908c842243778caaa701a05bc849a1a2f08 (patch) | |
tree | 9b7e55aa0eb1dd96be18b1902f57ac3bc22eb1e7 /address_error.patch | |
download | aur-817e5908c842243778caaa701a05bc849a1a2f08.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) |