Opened 3 years ago

Closed 3 years ago

#17923 closed Bug (fixed)

NameError: global name 'warnings' is not defined

Reported by: aldaran Owned by: aaugustin
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 aldaran 3 years ago.

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by aldaran

comment:1 Changed 3 years ago by aldaran

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

that's is just an import warning missing..

comment:2 Changed 3 years ago by aaugustin

  • Component changed from Core (Other) to Database layer (models, ORM)
  • Owner changed from nobody to aaugustin
  • Severity changed from Normal to Release blocker
  • Triage Stage changed from Unreviewed to Accepted

comment:3 Changed 3 years ago by aaugustin

  • Resolution set to fixed
  • Status changed from new to closed

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