Opened 10 years ago

Closed 10 years ago

#24504 closed Uncategorized (wontfix)

StandardError is not defined in django.utils.dictconfig

Reported by: Benjamin Hedrich Owned by: nobody
Component: Utilities Version: 1.7
Severity: Normal Keywords: Python 3, logging, utils
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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

Change History (2)

comment:1 by Benjamin Hedrich, 10 years ago

Summary: StandardError is not defined inStandardError is not defined in django.utils.dictconfig

comment:2 by Tim Graham, 10 years ago

Resolution: wontfix
Status: newclosed

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

Note: See TracTickets for help on using tickets.
Back to Top