➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 Tim.Graham
收信人 Tim.Graham, berker.peksag, pitrou, python-dev, serhiy.storchaka, vstinner
日期 2015-03-22.01:19:57
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1426987199.48.0.775217197362.issue23571@psf.upfronthosting.co.za>
In-reply-to
内容
Here's an exception in Django after the latest patch. The Django code block in the last exception catches ValueError, but this doesn't seem to work any longer since it's "wrapped" in SystemError. As Berker mentioned, some upgrade tips would be great as I'm not sure what adaptions in Django need to be made.

Traceback (most recent call last):
  File "/home/tim/code/django/django/contrib/contenttypes/views.py", line 17, in shortcut
    content_type = ContentType.objects.get(pk=content_type_id)
  File "/home/tim/code/django/django/db/models/manager.py", line 127, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/home/tim/code/django/django/db/models/query.py", line 387, in get
    self.model._meta.object_name
django.contrib.contenttypes.models.DoesNotExist: ContentType matching query does not exist.

...

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
ValueError: could not convert string to float: request_path

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
....
  File "/home/tim/code/django/django/template/base.py", line 792, in __init__
    self.literal = float(var)
SystemError: <class 'ValueError'> returned a result with an error set
历史
日期 用户 动作 参数
2015-03-22 01:20:00Tim.Graham修改recipients: + Tim.Graham, pitrou, vstinner, python-dev, berker.peksag, serhiy.storchaka
2015-03-22 01:19:59Tim.Graham修改messageid: <1426987199.48.0.775217197362.issue23571@psf.upfronthosting.co.za>
2015-03-22 01:19:59Tim.Graham链接issue23571 messages
2015-03-22 01:19:57Tim.Graham创建