Skip to content

Commit 8999359

Browse files
committed
fix: enhance error handling for provider configuration
1 parent 722b964 commit 8999359

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ORStools/ORStoolsPlugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def __init__(self, iface: QgisInterface) -> None:
7676

7777
try:
7878
configmanager.read_config()["providers"]
79-
except KeyError:
79+
except (TypeError, KeyError):
8080
self.add_default_provider_to_settings()
8181

8282
def initGui(self) -> None:

0 commit comments

Comments
 (0)