Opened 9 years ago

Closed 9 years ago

#3330 closed (invalid)

importing newforms in shell throws AttributeError on URL_VALIDATOR_USER_AGENT

Reported by: Fred Owned by: adrian
Component: Forms Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


In newforms/ line 275 and on a check is done on the existence of URL_VALIDATOR_USER_AGENT with an exception handler on ImportError. But if you import newsforms on the shell ( shell), an dAttributeError is thrown instead of an ImportError.

suggested fix: add AttributeError to the exception handler in newforms/ linke 278

Change History (1)

comment:1 Changed 9 years ago by anonymous

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

Never mind. Somehow my svn checkout and install-dir got out of sync and an old and possibly other files weren't updated.

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