posativ / acrylamid

(unmaintained) static blog generator in python with incremental rendering ⛺
http://posativ.org/acrylamid/
Other
277 stars 40 forks source link

Disabling a built-in filter doesn't seem to work #229

Closed andreamoro closed 9 years ago

andreamoro commented 9 years ago

I'm trying to disable a built-in filter like head_offset to avoid unwanted formatting issues, but this doesn't seem possible. Below the stack.

load_entry_point('acrylamid==0.8.dev0', 'console_scripts', 'acrylamid')()
File "/Users/andreamoro/VirtualEnvs/JumpAcrylamid/lib/python2.7/site-packages/acrylamid/__init__.py", line 164, in Acryl
commands.compile(conf, env)
File "/Users/andreamoro/VirtualEnvs/JumpAcrylamid/lib/python2.7/site-packages/acrylamid/commands.py", line 170, in compile
fx = aflist[fname](conf, env, val, *fargs)
File "/Users/andreamoro/VirtualEnvs/JumpAcrylamid/lib/python2.7/site-packages/acrylamid/filters/__init__.py", line 290, in __getitem__
f = next(filter(lambda x: item in x.match, self))
StopIteration
posativ commented 9 years ago

Can you give me a minimal reproducable setup?

posativ commented 9 years ago

Fixed by #231. The actual error message is "x not in list", which means you're trying to disable a filter that isn't applied.