Modify ↓
Opened 9 years ago
Closed 8 years ago
#12604 closed defect (fixed)
TypeError: execute() takes at least 2 arguments (1 given)
Reported by: | starofrainnight | Owned by: | osimons |
---|---|---|---|
Priority: | normal | Component: | FullBlogPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.12 |
Description
How to Reproduce
While doing a GET operation on /blog
, Trac issued an internal error.
(please provide additional details here)
Request parameters:
{'blog_path': ''}
User agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0
System Information
系统信息不可用
Enabled Plugins
插件信息不可用
Python Traceback
Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/trac/web/main.py", line 529, in _dispatch_request dispatcher.dispatch(req) File "/usr/local/lib/python2.7/dist-packages/trac/web/main.py", line 243, in dispatch resp = chosen_handler.process_request(req) File "/usr/local/lib/python2.7/dist-packages/TracFullBlogPlugin-0.1.4-py2.7.egg/tracfullblog/web_ui.py", line 126, in process_request data['blog_infotext'] = blog_core.get_bloginfotext() File "/usr/local/lib/python2.7/dist-packages/TracFullBlogPlugin-0.1.4-py2.7.egg/tracfullblog/core.py", line 161, in get_bloginfotext cursor.execute() TypeError: execute() takes at least 2 arguments (1 given)
=================
Environment :
Ubuntu 14.04, Trac 0.12.7, at [14886]
=================
That code statement maybe want to do things below :
cursor.execute(sql)
Attachments (0)
Change History (4)
comment:1 Changed 9 years ago by
comment:3 Changed 8 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:4 Changed 8 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Don't see why this should be reopened when no feedback or new information is provided. Closing again.
Note: See
TracTickets for help on using
tickets.
Replying to starofrainnight:
The fix looks correct. I'll wait for osimons fix the issue, but will push the change in a few days if he's busy.