Skip to content
This repository was archived by the owner on Mar 12, 2020. It is now read-only.

Commit 6fd92ee

Browse files
authored
Merge pull request #172 from mtxr/fix-per-project-connections
Fixes per-project connection settings
2 parents 160406b + 2e14445 commit 6fd92ee

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

SQLTools.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,11 @@ def getConnections():
9696
connectionsObj[name] = createConnection(name, config, settings=settings.all())
9797

9898
# project settings
99-
options = Window().project_data().get('connections', {})
100-
for name, config in options.items():
101-
connectionsObj[name] = createConnection(name, config, settings=settings.all())
99+
projectData = Window().project_data()
100+
if projectData:
101+
options = projectData.get('connections', {})
102+
for name, config in options.items():
103+
connectionsObj[name] = createConnection(name, config, settings=settings.all())
102104

103105
return connectionsObj
104106

0 commit comments

Comments
 (0)