Skip to content
Snippets Groups Projects
Commit ba2dd33a authored by Sebastian Lobinger's avatar Sebastian Lobinger
Browse files

update sams_app.py _get_attr to print value of attrString in exception

parent 3fc3dac3
Branches
Tags
1 merge request!10Resolve "Example App schreiben"
......@@ -66,7 +66,7 @@ class SAMSApp:
pass
attrList = attrString.split('.')
if len(attrList) <= 1:
raise FunctionNotExists('The function ' + attrString + ' does not exist')
raise FunctionNotExists(('The function ' + attrString + ' does not exist'))
return SAMSApp._get_attr(getattr(thing, attrList[0]), '.'.join(attrList[1:]))
@property
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment