[Django] #24504: StandardError is not defined in

11 views
Skip to first unread message

Django

unread,
Mar 18, 2015, 11:44:06 AM3/18/15
to django-...@googlegroups.com
#24504: StandardError is not defined in
-------------------------------+--------------------------------------
Reporter: bh | Owner: nobody
Type: Uncategorized | Status: new
Component: Utilities | Version: 1.7
Severity: Normal | Keywords: Python 3, logging, utils
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
I'm on Python 3.4.1 with Django 1.7.4.

When using django.utils.dictconfig to configure custom logging and this
function cannot configure a logging formatter than the code will "except"
an SystemError which is not defined in this module or in __builtin__.

I fixed this temporarily to fix my logging config with this workaround:

{{{
from django.utils import dictconfig
class StandardError(Exception):
pass

dictconfig.StandardError = StandardError
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24504>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Mar 18, 2015, 11:44:35 AM3/18/15
to django-...@googlegroups.com
#24504: StandardError is not defined in django.utils.dictconfig
-------------------------------------+-------------------------------------

Reporter: bh | Owner: nobody
Type: Uncategorized | Status: new
Component: Utilities | Version: 1.7
Severity: Normal | Resolution:
Keywords: Python 3, logging, | Triage Stage:
utils | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by bh):

* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/24504#comment:1>

Django

unread,
Mar 18, 2015, 12:25:47 PM3/18/15
to django-...@googlegroups.com
#24504: StandardError is not defined in django.utils.dictconfig
-------------------------------------+-------------------------------------
Reporter: bh | Owner: nobody
Type: Uncategorized | Status: closed
Component: Utilities | Version: 1.7
Severity: Normal | Resolution: wontfix

Keywords: Python 3, logging, | Triage Stage:
utils | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* status: new => closed
* resolution: => wontfix


Comment:

`django.utils.dictconfig` is deprecated, please use Python's
`logging.config` instead.

--
Ticket URL: <https://code.djangoproject.com/ticket/24504#comment:2>

Reply all
Reply to author
Forward
0 new messages