Opened 6 years ago

Closed 6 years ago

Last modified 4 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: UI/UX:

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@… 6 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 follow-up: Changed 6 years ago by mtredinnick

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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.

Changed 6 years ago by falken@…

comment:2 in reply to: ↑ 1 Changed 6 years ago by anonymous

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 Changed 4 years ago by jacob

  • milestone 1.1 deleted

Milestone 1.1 deleted

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