Modify ↓
Opened 16 years ago
Closed 16 years ago
#5771 closed defect (fixed)
NameError: global name 'dict_file' is not defined
| Reported by: | Owned by: | Jeff Hammel | |
|---|---|---|---|
| Priority: | normal | Component: | CaptchaAuthPlugin |
| Severity: | major | Keywords: | |
| Cc: | Trac Release: | 0.12 |
Description
I have the error on register page.
Error action is GET: /register.
What info is required?
Attachments (0)
Change History (2)
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note: See
TracTickets for help on using
tickets.



The patch solves the problem
--- __init__.py.orig 2009-09-05 21:42:22.476702440 +0400 +++ __init__.py 2009-09-05 21:43:03.917704715 +0400 @@ -167,7 +167,7 @@ if self.dict_file.startswith("http://"): f = urllib.urlopen(self.dict_file) else: - f = open(dict_file, "r") + f = open(self.dict_file, "r") _dict = f.read() f.close() _dict = _dict.lower().split()