Reputation: 4149
For example in Django:
S = request.POST.get("NonexistentField") # There is no error, it fails silently
How to show all errors in html, javascript, django?
Upvotes: 0
Views: 454
Reputation: 752
If you want to see the errors just for development purposes, you might want to take a look at Django debug toolbar. It is a great tool that show you data about http headers, sql queries,etc.
https://github.com/django-debug-toolbar/django-debug-toolbar
Upvotes: 0
Reputation: 599788
Why should there be an error there? In Python, dict.get('key')
is specifically designed not to raise an exception if the key doesn't exist. If you want to cause an exception, do dict['key']
directly.
Upvotes: 5