"%" needs to be escaped or a exception is raised (when no args are to be replaced)
Bug #501911 reported by
Rodrigo Bistolfi
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lalita |
Fix Released
|
Medium
|
Unassigned |
Bug Description
If a message from a plug-in contains "%", an exception is raised:
{{{
File "/home/
finalmsg = trans % args
TypeError: not enough arguments for format string
}}}
"%" should be escaped from messages for preventing this exception (replacing "%" with "%%" before using say() works for me.)
Changed in lalita: | |
status: | Confirmed → Fix Committed |
Changed in lalita: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
If you call .say() with "%" and without args, it should work without escaping the "%" (as there're no args, no replacement should be done).