summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mapfile.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mapfile.py b/src/mapfile.py
index a6ebede..e1494b1 100644
--- a/src/mapfile.py
+++ b/src/mapfile.py
@@ -79,7 +79,10 @@ def load(string):
obj = clsObj()
for attrName in clsObj.__dump_attribs__:
- setattr(obj, attrName, source[attrName])
+ try:
+ setattr(obj, attrName, source[attrName])
+ except:
+ print "{0} was missing the attribute {1}".format(obj, attrName)
if hasattr(obj, '_preload'):
obj._preload(source)