Opened 9 years ago
Last modified 6 years ago
#2805 new defect
wxGUI: attribute table opening bug when driver is undefined
Reported by: | neteler | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.6.2 |
Component: | wxGUI | Version: | svn-trunk |
Keywords: | attribute, db.connect | Cc: | |
CPU: | Unspecified | Platform: | Linux |
Description
Today one of our users got this crash:
Traceback (most recent call last): File "/home/ANDREA/src/grass71/dist.x86_64-unknown-linux- gnu/gui/wxpython/lmgr/frame.py", line 1767, in OnShowAttributeTable selection = selection) File "/home/ANDREA/src/grass71/dist.x86_64-unknown-linux- gnu/gui/wxpython/dbmgr/manager.py", line 109, in __init__ self.CreateDbMgrPage(parent = self, pageName = 'manageLayer') File "/home/ANDREA/src/grass71/dist.x86_64-unknown-linux- gnu/gui/wxpython/dbmgr/base.py", line 730, in CreateDbMgrPage self.pages[pageName] = DbMgrLayersPage(parent = parent, parentDbMgrBase = self) File "/home/ANDREA/src/grass71/dist.x86_64-unknown-linux- gnu/gui/wxpython/dbmgr/base.py", line 2494, in __init__ parentDialog = self) File "/home/ANDREA/src/grass71/dist.x86_64-unknown-linux- gnu/gui/wxpython/dbmgr/base.py", line 2722, in __init__ self.defaultTables = self._getTables(self.defaultConnect['driver'], KeyError : 'driver'
I discovered that for unknown reasons no DB connection was defined:
db.connect -p ERROR: Database connection not defined. Run db.connect.
Hopefully easy to catch with a try-except condition?
Change History (6)
comment:1 by , 9 years ago
Milestone: | 7.0.3 |
---|
comment:3 by , 9 years ago
Milestone: | 7.0.4 → 7.0.5 |
---|
comment:4 by , 8 years ago
Milestone: | 7.0.5 → 7.0.6 |
---|
comment:5 by , 7 years ago
Milestone: | 7.0.6 → 7.0.7 |
---|
Note:
See TracTickets
for help on using tickets.
Ticket retargeted after milestone closed