@@ -69,7 +69,9 @@ def __set_url(self):
6969
7070 def __check_version (self ):
7171 version_url = f"{ self .url } /version"
72- data = request_and_check ("GET" , version_url , ** {"timeout" : self .timeout })
72+ data = request_and_check (
73+ "GET" , version_url , ** {"timeout" : self .timeout }
74+ )
7375
7476 if len (data ) > 2 :
7577 log .debug (f"{ self .url } is working and will be used." )
@@ -89,7 +91,9 @@ def __check_version(self):
8991 self .api_version = "v1"
9092 self .__check_version ()
9193 else :
92- raise Exception (f"Connection to actinia server <{ self .url } > failed!" )
94+ raise Exception (
95+ f"Connection to actinia server <{ self .url } > failed!"
96+ )
9397
9498 def get_version (self ):
9599 """
@@ -98,7 +102,9 @@ def get_version(self):
98102 """
99103
100104 version_url = f"{ self .url } /version"
101- return request_and_check ("GET" , version_url , ** {"timeout" : self .timeout })
105+ return request_and_check (
106+ "GET" , version_url , ** {"timeout" : self .timeout }
107+ )
102108
103109 def __check_auth (self ):
104110 url = f"{ self .url } /locations"
@@ -145,7 +151,9 @@ def __request_locations(self):
145151 loc_names = request_and_check (
146152 "GET" , url , ** {"timeout" : self .timeout , "auth" : (self .__auth )}
147153 )["locations" ]
148- loc = {lname : Location (lname , self , self .__auth ) for lname in loc_names }
154+ loc = {
155+ lname : Location (lname , self , self .__auth ) for lname in loc_names
156+ }
149157 self .locations = loc
150158
151159 def create_location (self , name , epsgcode ):
0 commit comments