libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject [libcloud] 14/14: Fix lint.
Date Sun, 04 Oct 2020 15:39:33 GMT
This is an automated email from the ASF dual-hosted git repository.

tomaz pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit 545e208cd90c90ecaca69be139320ef18728313f
Author: Tomaz Muraus <tomaz@tomaz.me>
AuthorDate: Sun Oct 4 17:36:55 2020 +0200

    Fix lint.
---
 libcloud/common/ovh.py | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/libcloud/common/ovh.py b/libcloud/common/ovh.py
index a9c11af..778c352 100644
--- a/libcloud/common/ovh.py
+++ b/libcloud/common/ovh.py
@@ -140,9 +140,11 @@ class OvhConnection(ConnectionUserAndKey):
         httpcon = LibcloudConnection(host=self.host, port=443)
 
         try:
-            httpcon.request(method='POST', url=action, body=data, headers=headers)
+            httpcon.request(method='POST', url=action, body=data,
+                            headers=headers)
         except requests.exceptions.ConnectionError as e:
-            handle_and_rethrow_user_friendly_invalid_region_error(host=self.host, e=e)
+            handle_and_rethrow_user_friendly_invalid_region_error(
+                host=self.host, e=e)
 
         response = OvhResponse(httpcon.getresponse(), httpcon)
 
@@ -210,9 +212,10 @@ class OvhConnection(ConnectionUserAndKey):
         try:
             return super(OvhConnection, self)\
                 .request(action, params=params, data=data, headers=headers,
-                        method=method, raw=raw)
+                         method=method, raw=raw)
         except requests.exceptions.ConnectionError as e:
-            handle_and_rethrow_user_friendly_invalid_region_error(host=self.host, e=e)
+            handle_and_rethrow_user_friendly_invalid_region_error(
+                host=self.host, e=e)
 
 
 def handle_and_rethrow_user_friendly_invalid_region_error(host, e):


Mime
View raw message