gnunicorn / mihats

MiHats
0 stars 0 forks source link

Create of the same Profile fails with Err500 instead of appropriate error message #1

Open gnunicorn opened 11 years ago

gnunicorn commented 11 years ago

Quoting the logs:

Profile already exists. Traceback (most recent call last): File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1535, in call rv = self.handle_exception(request, response, e) File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1529, in call rv = self.router.dispatch(request, response) File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1278, in default_dispatcher return route.handler_adapter(request, response) File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1102, in call return handler.dispatch() File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 572, in dispatch return self.handle_exception(e, self.app.debug) File "/python27_runtime/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 570, in dispatch return method(_args, _kwargs) File "/base/data/home/apps/s~amasoeany/1.365250536880679613/utils.py", line 42, in wrapped res = fun(handler, _args, _kwargs) File "/base/data/home/apps/s~amasoeany/1.365250536880679613/utils.py", line 32, in wrapped return func(self, params, _args, *_kwargs) File "/base/data/home/apps/s~amasoeany/1.365250536880679613/main.py", line 79, in post raise ValueError("Profile already exists.") ValueError: Profile already exists.

stefanhoth commented 11 years ago

confirmed.