Import fixes/pychecker fixes

svn: r1256
This commit is contained in:
Don Allingham
2003-01-15 05:25:50 +00:00
parent 30aa40eb21
commit af7a07d49d
30 changed files with 614 additions and 1396 deletions

View File

@@ -55,6 +55,8 @@ from re import compile
import const
import Utils
import GrampsCfg
import Errors
from intl import gettext as _
#-------------------------------------------------------------------------
@@ -77,13 +79,6 @@ _failmsg = []
_unavailable = _("No description was provided"),
#-------------------------------------------------------------------------
#
# Exception Strings
#
#-------------------------------------------------------------------------
MissingLibraries = _("Missing Libraries")
#-------------------------------------------------------------------------
#
# Constants
@@ -336,8 +331,8 @@ def load_plugins(direct):
try:
a = __import__(plugin)
_success.append(a)
except MissingLibraries,msg:
_expect.append((file,msg))
except Errors.PluginError, msg:
_expect.append((file,str(msg)))
except:
_failmsg.append((file,sys.exc_info()))