Skip to content
Snippets Groups Projects
Commit 06dec554 authored by Julian Rother's avatar Julian Rother
Browse files

Removed hasattr check in Model.__init__

The check did not work correctly with @property attributes
parent 2358086f
No related branches found
No related tags found
No related merge requests found
......@@ -125,8 +125,6 @@ class Model:
def __init__(self, **kwargs):
self.ldap_object = core.Object()
for key, value, in kwargs.items():
if not hasattr(self, key):
raise Exception()
setattr(self, key, value)
@property
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment