Exception when no acronym files are specified
Hard to find because most of the times an environment variable defines them.
Traceback (most recent call last):
File "/Users/mirko/d/Py/Jupyter/lib/python3.11/site-packages/filter/pandocacronyms.py", line 27, in filter
filter.run(acronyms)
File "/Users/mirko/d/Py/Jupyter/lib/python3.11/site-packages/acronyms/acronym_filter.py", line 67, in run
with open(input, "r") as handle:
^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: ''
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/mirko/d/Py/Jupyter/bin/pandoc-acronyms", line 8, in <module>
sys.exit(filter())
^^^^^^^^
File "/Users/mirko/d/Py/Jupyter/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mirko/d/Py/Jupyter/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/Users/mirko/d/Py/Jupyter/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mirko/d/Py/Jupyter/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mirko/d/Py/Jupyter/lib/python3.11/site-packages/filter/pandocacronyms.py", line 32, in filter
error(str(e))
TypeError: 'bool' object is not callable
Error running filter pandoc-acronyms:
Filter returned error status 1