Opened 5 years ago

Closed 5 years ago

#5771 closed defect (fixed)

NameError: global name 'dict_file' is not defined

Reported by: kirikaza@… Owned by: k0s
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 5 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 5 years ago by k0s

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from k0s. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.