This bugs me a while.
When exception is thrown inside model function not traceback or any indication
is given (with DEBUG=True), for example
(m-r):
class Foo(models.Model)
def bar(self):
raise SomeException()
will return nothing (None) with *no indication* that error is occurred! Which
leads to mysterious errors or missing data
without any indication what is happened.
So I got accustomed to write something like this:
class Foo(models.Model)
def bar(self):
try:
raise SomeException()
except Exception, err:
return str(err)
to, at least, get some indication (as a text returned from function) when error
is occurred.
Any solutions or plans for this?
p.s. I move some of my new projects to m-r branch so I can (hopefully) provide
some feedback (and patches) soon.
--
Nebojša Đorđević - nesh
Studio Quattro - Niš - SCG
http://studioquattro.biz/
http://djnesh.blogspot.com/ | http://djnesh-django.blogspot.com/ |
http://djangoutils.python-hosting.com/
Registered Linux User 282159 [http://counter.li.org]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-developers
-~----------~----~----~----~------~----~------~--~---