Additional test before import

svn: r14369
This commit is contained in:
Doug Blank 2010-02-14 18:45:41 +00:00
parent 3cdc9d9791
commit 17d6222e70

View File

@ -197,7 +197,7 @@ def construct_view_order():
viewstoshow = {} viewstoshow = {}
for pdata in view_list: for pdata in view_list:
mod = pmgr.load_plugin(pdata) mod = pmgr.load_plugin(pdata)
if not mod: if not mod or not hasattr(mod, pdata.viewclass):
#import of plugin failed #import of plugin failed
ErrorDialog( ErrorDialog(
_('Failed Loading View'), _('Failed Loading View'),