Modify

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

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 15 years ago by kirikaza@…

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()

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
Action
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.