Opened 13 years ago

Closed 13 years ago

#17923 closed Bug (fixed)

NameError: global name 'warnings' is not defined

Reported by: Simone Owned by: Aymeric Augustin
Component: Database layer (models, ORM) Version: 1.4-alpha-1
Severity: Release blocker Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

Traceback (most recent call last):
.....
.....

File "/mnt/source/home/aldaran/workspaces/django/Django-Trunk/django/db/backends/oracle/base.py", line 568, in init

warnings.warn(u"Oracle received a naive datetime (%s)"

NameError: global name 'warnings' is not defined

Attachments (1)

missing_warning.patch (598 bytes ) - added by Simone 13 years ago.

Download all attachments as: .zip

Change History (4)

by Simone, 13 years ago

Attachment: missing_warning.patch added

comment:1 by Simone, 13 years ago

that's is just an import warning missing..

comment:2 by Aymeric Augustin, 13 years ago

Component: Core (Other)Database layer (models, ORM)
Owner: changed from nobody to Aymeric Augustin
Severity: NormalRelease blocker
Triage Stage: UnreviewedAccepted

comment:3 by Aymeric Augustin, 13 years ago

Resolution: fixed
Status: newclosed

In [17758]:

Fixed #17923 -- Added missing import in the MySQL and Oracle backends. Thanks aldaran for the report. Also removed two duplicate imports.

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