File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -167,19 +167,9 @@ def not_excluded(s):
167
167
168
168
else :
169
169
# try find property with the same name in the source
170
- if prop not in from_props :
171
- continue
172
-
173
- # prop_to_type = type(from_props[prop])
174
-
175
- # if isclass(prop_to_type) and \
176
- # not issubclass(prop_to_type, Enum) and \
177
- # prop_to_type is not type(None) and \
178
- # not __builtins__.get(type(from_props[prop]).__name__):
179
- # self.map(from_props[prop], key_to, allow_none=allow_none)
180
- # else:
181
- setattr (inst , prop , from_props [prop ])
182
- # case when target attribute is not mapped (can be extended)
170
+ if prop in from_props :
171
+ setattr (inst , prop , from_props [prop ])
172
+ # case when target attribute is not mapped (can be extended)
183
173
else :
184
174
raise ObjectMapperException ("No mapping defined for {0} -> {1}" .format (key_from , key_to ))
185
175
You can’t perform that action at this time.
0 commit comments