Opened 11 years ago
Closed 11 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 , 11 years ago
| Summary: | StandardError is not defined in → StandardError is not defined in django.utils.dictconfig |
|---|
comment:2 by , 11 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
django.utils.dictconfigis deprecated, please use Python'slogging.configinstead.