Modify ↓
Opened 9 years ago
Closed 9 years ago
#12215 closed defect (duplicate)
ERROR: Filter strategy <tracspamfilter.filters.trapfield.TrapFieldFilterStrategy object at 0x812b434c> raised exception: expected string or buffer
Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | plugin/spamfilter | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Found this in the log file. I'll investigate trapping the error to avoid the traceback.
2015-09-23 01:37:39,931 Trac[filtersystem] ERROR: Filter strategy <tracspamfilter.filters.trapfield.TrapFieldFilterStrategy object at 0x812b434c> raised exception: expected string or buffer Traceback (most recent call last): File "/srv/trac-hacks.org/pve/lib/python2.6/site-packages/TracSpamFilter-1.0.6.dev0-py2.6.egg/tracspamfilter/filtersystem.py", line 192, in test retval = strategy.test(req, author, content, ip) File "/srv/trac-hacks.org/pve/lib/python2.6/site-packages/TracSpamFilter-1.0.6.dev0-py2.6.egg/tracspamfilter/filters/trapfield.py", line 65, in test i = shorten_line(javascript_quote(i), 50) File "build/bdist.linux-i686/egg/trac/util/text.py", line 155, in javascript_quote return _js_quote_re.sub(replace, text)TypeError: expected string or buffer
Attachments (0)
Change History (4)
comment:1 by , 9 years ago
Component: | general → plugin/spamfilter |
---|---|
Owner: | set to |
comment:3 by , 9 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:4 by , 9 years ago
Milestone: | plugin - spam-filter |
---|---|
Resolution: | → duplicate |
Status: | assigned → closed |
Duplicate of #12269.
Note:
See TracTickets
for help on using tickets.
Will also look into trapping this exception: