hello Everybody .

my probelem is that i want to make the traceback disappear when an
exception is raised .
 I'm using the module logging with Django and i 'm  redirecting the
output to a file and this file must contain only feedback to the
developer , and with the traceback it's not readable at all .

so i tried in every exception to print a readable message but i have
always the traceback how print as well
example :

try
        price = decimal.Decimal(extracted_tags.get("PRICE", "0"))
        if price:
            product.list_price = price

    except Exception, e:
        logging.exception('Unable to convert the followin price : ' +
extracted_tags.get("PRICE"))

and in my log file i have :

  Unable to convert the followin price : " 445,54"
Traceback (most recent call last):
...........

can someone help me please and thanks for everything .

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to