diff options
Diffstat (limited to 'src/mapfile.py')
-rw-r--r-- | src/mapfile.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mapfile.py b/src/mapfile.py index e1494b1..27e2ff9 100644 --- a/src/mapfile.py +++ b/src/mapfile.py @@ -66,7 +66,6 @@ def load(string): try: clsName = source['_t'] clsObj = DUMPABLE_CLASSES_BY_NAME[clsName] - print "Loading %s" % clsName except KeyError: # let's give this one more shot with the loadable proxies try: @@ -82,7 +81,11 @@ def load(string): try: setattr(obj, attrName, source[attrName]) except: - print "{0} was missing the attribute {1}".format(obj, attrName) + if attrName == 'folder': + obj.folder = '' + + else: + print "{0} was missing the attribute {1}".format(obj, attrName) if hasattr(obj, '_preload'): obj._preload(source) |