Skip to content

Add better property value validation.#26

Merged
mrstegeman merged 1 commit into
WebThingsIO:masterfrom
mrstegeman:better-validation
Sep 24, 2018
Merged

Add better property value validation.#26
mrstegeman merged 1 commit into
WebThingsIO:masterfrom
mrstegeman:better-validation

Conversation

@mrstegeman
Copy link
Copy Markdown
Contributor

No description provided.

@ghost ghost assigned mrstegeman Sep 24, 2018
@ghost ghost added the review label Sep 24, 2018
Comment thread webthing/server.py
thing.set_property(property_name, args[property_name])
except PropertyError:
self.set_status(403)
self.set_status(400)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to expose the PropertyError's message

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mrstegeman mrstegeman merged commit 95d6d65 into WebThingsIO:master Sep 24, 2018
@ghost ghost removed the review label Sep 24, 2018
@mrstegeman mrstegeman deleted the better-validation branch September 24, 2018 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants