Opened 16 years ago

Closed 16 years ago

Last modified 13 years ago

#10930 closed (invalid)

int_alias UnboundLocalError exception in query.py (reported by Wingware IDE defaults)

Reported by: falken@… Owned by: nobody
Component: Database layer (models, ORM) Version: 1.1-beta
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

using latest wingware IDE which always reports UnboundLocalError exceptions by its default preferences, immediatelly during first application access to started devserver I discovered this small waste annoyance in code - I had ignored this error location according to this thread:
http://groups.google.com/group/django-developers/browse_thread/thread/a5432ea21c40b667#,
but today it occured again during debugging deeper in this code, so I decided to report it with quick patch.
IMHO its better to have this ugly annoyance solved.

Attachments (1)

patch.diff (629 bytes ) - added by falken@… 16 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 by Malcolm Tredinnick, 16 years ago

Resolution: invalid
Status: newclosed

There is no bug in Django here. Certainly the variable is potentially used unbounded and we handle that case on the very next line, which is fine.

by falken@…, 16 years ago

Attachment: patch.diff added

in reply to:  1 comment:2 by anonymous, 16 years ago

Replying to mtredinnick:

There is no bug in Django here. Certainly the variable is potentially used unbounded and we handle that case on the very next line, which is fine.

Ok :), it's only "first impression issue" while using ide with this exceptions forced by defaults. After many hours of debugging, this is only one place where something like this occured for me. Hope for 1.1 soon anyway :) thanks for support

comment:3 by Jacob, 13 years ago

milestone: 1.1

Milestone 1.1 deleted

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