File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
1
# Maintainer: Proton Technologies AG <opensource@proton.me>
2
2
pkgname=python-proton-client
3
3
pkgver=0.6.1
4
- pkgrel=2
4
+ pkgrel=3
5
5
pkgdesc=" Safely login with ProtonVPN credentials to connect to Proton."
6
6
arch=(" any" )
7
7
url=" https://github.com/ProtonMail/proton-python-client"
Original file line number Diff line number Diff line change 1
- proton-python-client (0.6.1-2 ) unstable; urgency=medium
1
+ proton-python-client (0.6.1-3 ) unstable; urgency=medium
2
2
3
3
* Feature: Alternative Routing
4
4
Original file line number Diff line number Diff line change @@ -247,14 +247,15 @@ def api_request(
247
247
try :
248
248
response = self .__make_request (fct , ** request_params )
249
249
except (
250
- requests .exceptions .ConnectionError ,
251
- requests .exceptions .Timeout , TLSPinningError
250
+ NewConnectionError ,
251
+ ConnectionTimeOutError ,
252
+ TLSPinningError ,
252
253
) as e :
254
+ self ._logger .exception (e )
253
255
exc_type , * _ = sys .exc_info ()
254
256
exception_class = exc_type
255
257
exception_msg = e
256
258
except (Exception , requests .exceptions .BaseHTTPError ) as e :
257
- self ._logger .exception (e )
258
259
raise UnknownConnectionError (e )
259
260
260
261
if exception_class and (not self .__allow_alternative_routes or _skip_alt_routing_for_api_check or self .__force_skip_alternative_routing ): # noqa
Original file line number Diff line number Diff line change 1
1
%define unmangled_name proton-client
2
2
%define version 0.6.1
3
- %define release 2
3
+ %define release 3
4
4
5
5
Prefix: %{_prefix }
6
6
@@ -49,7 +49,7 @@ rm -rf $RPM_BUILD_ROOT
49
49
%defattr(-,root,root)
50
50
51
51
%changelog
52
- * Thu Jul 08 2021 Proton Technologies AG <opensource@proton.me> 0.6.1-2
52
+ * Thu Jul 08 2021 Proton Technologies AG <opensource@proton.me> 0.6.1-3
53
53
- Feature: Alternative Routing
54
54
55
55
* Mon May 24 2021 Proton Technologies AG <opensource@proton.me> 0.5.1-3
You can’t perform that action at this time.
0 commit comments