Skip to content
Snippets Groups Projects
Commit 3b01ad06 authored by James Vasile's avatar James Vasile
Browse files

Make run_p optional

parent 925a1fb9
No related branches found
No related tags found
No related merge requests found
......@@ -66,8 +66,9 @@ def cli(filename, output, option, plugin):
plugins = get_plugins()
for p,m in plugins.items():
if m.run_p(text, meta):
text, meta = m.run(text, meta)
if hasattr(m, "run_p"):
if m.run_p(text, meta):
text, meta = m.run(text, meta)
if output:
with open(output, 'w') as fh:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment