ImageMacro: ValueError: invalid literal for int() with base 10: '10px'
From the logs:
[pid 10253 140015545095936] 2016-02-13 07:15:58,674 Trac[formatter] ERROR: Macro Image(icon_PyCharm.png, link=https://www.jetbrains.com/pycharm/, 35px, margin-right=10px, align=left) failed:
Traceback (most recent call last):
File "/usr/local/virtualenv/1.1dev/lib/python2.7/site-packages/trac/wiki/formatter.py", line 798, in _macro_formatter
return macro.ensure_inline(macro.process(args))
File "/usr/local/virtualenv/1.1dev/lib/python2.7/site-packages/trac/wiki/formatter.py", line 375, in process
text = self.processor(text)
File "/usr/local/virtualenv/1.1dev/lib/python2.7/site-packages/trac/wiki/formatter.py", line 347, in _macro_processor
text)
File "/usr/local/virtualenv/1.1dev/lib/python2.7/site-packages/trac/wiki/macros.py", line 596, in expand_macro
style[key] = ' %dpx' % int(val)
ValueError: invalid literal for int() with base 10: '10px'
Change History
(7)
Owner: |
set to Ryan J Ollos
|
Status: |
new → assigned
|
Milestone: |
1.0.11 → 1.0.12
|
Release Notes: |
modified (diff)
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Release Notes: |
modified (diff)
|
We could also fix this macro argument issue: