Opened 11 years ago

Closed 11 years ago

#3330 closed (invalid)

importing newforms in shell throws AttributeError on URL_VALIDATOR_USER_AGENT

Reported by: Fred Owned by: Adrian Holovaty
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 11 years ago by anonymous

Resolution: invalid
Status: newclosed

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