Modify

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

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 5 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 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

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


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

 
Note: See TracTickets for help on using tickets.