Opened 5 years ago

Closed 5 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 5 years ago.

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by Simone

Attachment: missing_warning.patch added

comment:1 Changed 5 years ago by Simone

that's is just an import warning missing..

comment:2 Changed 5 years ago by Aymeric Augustin

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

comment:3 Changed 5 years ago by Aymeric Augustin

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