importer: fix error message
This commit is contained in:
parent
a7d9e5c9e0
commit
c24f1df343
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ class CodeImporter(object):
|
|||
|
||||
def add_module(self, filename, abspath, modpath, code):
|
||||
if modpath in self.modules:
|
||||
raise AttributeError, "%s already found in importer"
|
||||
raise AttributeError, "%s already found in importer" % modpath
|
||||
|
||||
self.modules[modpath] = (filename, abspath, code)
|
||||
|
||||
|
|
Loading…
Reference in a new issue