Opened 15 years ago

Closed 15 years ago

#5771 closed defect (fixed)

NameError: global name 'dict_file' is not defined

Reported by: kirikaza@… Owned by: Jeff Hammel
Priority: normal Component: CaptchaAuthPlugin
Severity: major Keywords:
Cc: Trac Release: 0.12


I have the error on register page. Error action is GET: /register.

What info is required?

Attachments (0)

Change History (2)

comment:1 Changed 15 years ago by kirikaza@…

The patch solves the problem

---	2009-09-05 21:42:22.476702440 +0400
+++	2009-09-05 21:43:03.917704715 +0400
@@ -167,7 +167,7 @@
             if self.dict_file.startswith("http://"):
                 f = urllib.urlopen(self.dict_file)
-                f = open(dict_file, "r")
+                f = open(self.dict_file, "r")
             _dict =
             _dict = _dict.lower().split()

comment:2 Changed 15 years ago by Jeff Hammel

Resolution: fixed
Status: newclosed

(In [6510]) use self.dict_file not dict_file. fixes #5771

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Jeff Hammel.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.