Skip to content

Commit 10bd88a

Browse files
authored
Merge pull request #23 from GispoCoding/fix#21
Fix#21
2 parents abc5513 + 29b39ba commit 10bd88a

File tree

3 files changed

+48
-1
lines changed

3 files changed

+48
-1
lines changed
+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"folders": [
3+
{
4+
"path": "."
5+
}
6+
],
7+
"settings": {
8+
"python.languageServer": "Pylance",
9+
"python.testing.pytestEnabled": true,
10+
"python.testing.pytestArgs": [
11+
"test"
12+
],
13+
"python.testing.unittestEnabled": false,
14+
"python.defaultInterpreterPath": ".venv\\Scripts\\python.exe",
15+
},
16+
"launch": {
17+
"configurations": [
18+
{
19+
"name": "QGIS debugpy",
20+
"type": "python",
21+
"request": "attach",
22+
"connect": {
23+
"host": "localhost",
24+
"port": 5678
25+
},
26+
"pathMappings": [
27+
{
28+
"localRoot": "${workspaceFolder}/QGISDigitransitGeocoding",
29+
"remoteRoot": "C:/Users/${env:USERNAME}/AppData/Roaming/QGIS/QGIS3/profiles/default/python/plugins/QGISDigitransitGeocoding"
30+
}
31+
]
32+
},
33+
{
34+
"name": "Debug Tests",
35+
"type": "python",
36+
"request": "test",
37+
"console": "integratedTerminal",
38+
"justMyCode": false,
39+
"env": {
40+
"PYTEST_ADDOPTS": "--no-cov"
41+
}
42+
}
43+
],
44+
}
45+
}

QGISDigitransitGeocoding/build.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
if "test/" not in fil and "test\\" not in fil
1919
]
2020
locales = ["fi"]
21-
profile = "digi"
21+
profile = "digitransit"
2222
ui_files = list(glob.glob("**/*.ui", recursive=True))
2323
resources = list(glob.glob("**/*.qrc", recursive=True))
2424
extra_dirs = ["resources"]

QGISDigitransitGeocoding/ui/digitransit_geocoder_dockwidget.py

+2
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,14 @@ def handle_search_response(self, reply):
304304
reply.errorString(), "QGISDigitransitGeocoding", Qgis.Warning
305305
)
306306
else:
307+
self.iface.messageBar().pushMessage("Error", "An error occured. Check the log for details.", level=1, duration=10)
307308
QgsMessageLog.logMessage(
308309
str(error), "QGISDigitransitGeocoding", Qgis.Warning
309310
)
310311
QgsMessageLog.logMessage(
311312
reply.errorString(), "QGISDigitransitGeocoding", Qgis.Warning
312313
)
314+
return
313315

314316
try:
315317
if len(self.features) > 0 and self.radiobuttonresultsshowall.isChecked():

0 commit comments

Comments
 (0)