File tree 2 files changed +3
-6
lines changed 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -416,6 +416,7 @@ def option_chosen(name, lineEdit):
416
416
for feature in data ["features" ]
417
417
if feature ["properties" ]["name" ] == name
418
418
][0 ]
419
+ self .line_tool = maptools .LineTool (self )
419
420
self .add_geocoded_item (coords , lineEdit , name )
420
421
completer .activated .disconnect ()
421
422
lineEdit .setText ("" )
@@ -616,7 +617,6 @@ def _reindex_list_items(self) -> None:
616
617
self .annotations .append (annotation )
617
618
self .project .annotationManager ().addAnnotation (annotation )
618
619
try :
619
- self .line_tool = maptools .LineTool (self )
620
620
self .line_tool .create_rubber_band ()
621
621
except Exception as e :
622
622
if "Connection refused" in str (e ):
Original file line number Diff line number Diff line change @@ -18,11 +18,8 @@ def pytest_sessionstart(session):
18
18
Called after the Session object has been created and
19
19
before performing collection and entering the run test loop.
20
20
"""
21
- if data ["providers" ][0 ]["key" ] == "" :
22
- data ["providers" ][0 ]["key" ] = os .environ .get ("ORS_API_KEY" )
23
- s .setValue ("ORStools/config" , data )
24
- else :
25
- raise ValueError ("API key is not empty." )
21
+ data ["providers" ][0 ]["key" ] = os .environ .get ("ORS_API_KEY" )
22
+ s .setValue ("ORStools/config" , data )
26
23
27
24
28
25
def pytest_sessionfinish (session , exitstatus ):
You can’t perform that action at this time.
0 commit comments