File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 4444
4545_USER_AGENT = f"ORSQGISClient@v{ __version__ } "
4646
47+
4748class Client (QObject ):
4849 """Performs requests to the ORS API services."""
4950
@@ -149,9 +150,9 @@ def request(
149150 if not reply :
150151 raise exceptions .GenericServerError ("0" , "No response received" )
151152
152- content = reply .content ().data ().decode (' utf-8' )
153+ content = reply .content ().data ().decode (" utf-8" )
153154
154- except Exception as e :
155+ except Exception :
155156 try :
156157 self ._check_status (blocking_request )
157158
Original file line number Diff line number Diff line change @@ -203,7 +203,9 @@ def _get_ors_client_from_provider(
203203 ors_provider = providers [provider ]
204204 ors_client = client .Client (ors_provider , agent )
205205 ors_client .overQueryLimit .connect (
206- lambda retry_time : feedback .reportError (f"OverQueryLimit: Retrying in { retry_time } seconds." )
206+ lambda retry_time : feedback .reportError (
207+ f"OverQueryLimit: Retrying in { retry_time } seconds."
208+ )
207209 )
208210 return ors_client
209211
You can’t perform that action at this time.
0 commit comments