under certain circumstances attribute Config.db_selected could end up being undefined.

this could cause later code relying on it failing in strange ways.
This commit is contained in:
fpdb-mme 2009-11-02 08:30:24 +01:00
parent 0225987826
commit 62ee67c071

View File

@ -371,6 +371,7 @@ class Config:
self.aux_windows = {}
self.hhcs = {}
self.popup_windows = {}
self.db_selected = None # database the user would like to use
# s_sites = doc.getElementsByTagName("supported_sites")
for site_node in doc.getElementsByTagName("site"):