FunkFeuer / Graz

Node database based on common-node-db for Funkfeuer Graz
Other
1 stars 0 forks source link

Dashboard: create device without device type triggers exception #49

Closed tanzer closed 9 years ago

tanzer commented 9 years ago

Trying to create a device without filling in the input field for Net device type should result in an error message about missing information. Instead it fails with a server error.

tanzer commented 9 years ago

The tail of the traceback::

File "_GTW/_MF3/Element.py", line 741, in _create_instance result = ETM (on_error = on_error, raw = True, * svs) File "_MOM/E_Type_Manager.py", line 501, in call self._checked_roles (* args, * kw) File "_MOM/E_Type_Manager.py", line 610, in _checked_roles epk = tuple (self._raw_epk_iter (epk)) File "_MOM/E_Type_Manager.py", line 645, in _raw_epk_iter v = self._cooked_role (pka, v) File "_MOM/E_Type_Manager.py", line 633, in _cooked_role if not (v.startswith ("(") and v.endswith (")")) : AttributeError: 'NoneType' object has no attribute 'startswith'

tanzer commented 9 years ago

Fixed by commits: https://github.com/Tapyr/tapyr/commit/f7b1df862a2d48df2223ee9f8819aedf5e05578f https://github.com/Tapyr/tapyr/commit/f4a00a6c8dcd70f9536392a5de93dc0ebe0d0853