diff --git a/.pyspelling.yml b/.pyspelling.yml index 3fc980a..3d830e1 100644 --- a/.pyspelling.yml +++ b/.pyspelling.yml @@ -44,8 +44,9 @@ matrix: - title - alt ignores: - - ':is(code, pre, a.magiclink, span.keys)' - - ':is(.MathJax_Preview, .md-nav__link, .md-footer-custom-text, .md-source__repository, .headerlink, .md-icon)' + - 'code, pre, a.magiclink, span.keys' + - '.MathJax_Preview, .md-nav__link, .md-footer-custom-text, .md-source__repository, .headerlink, .md-icon' + - '.md-footer-social__link' - pyspelling.filters.url: - name: markdown diff --git a/ApplySyntax.py b/ApplySyntax.py index 6ae4b1b..ab6bb2c 100755 --- a/ApplySyntax.py +++ b/ApplySyntax.py @@ -445,6 +445,9 @@ def set_syntax(self, name): names = name for n in names: + if not n: + continue + path = os.path.dirname(n) if not path: continue diff --git a/CHANGES.md b/CHANGES.md index 12b6057..c369565 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,9 @@ # ApplySyntax +## 3.0.1 + +- **FIX**: Avoid evaluating path if it is None. + ## 3.0.0 - **NEW**: Remove deprecations. diff --git a/support.py b/support.py index 5565aab..a93411f 100644 --- a/support.py +++ b/support.py @@ -5,7 +5,7 @@ import webbrowser import re -__version__ = "3.0.0" +__version__ = "3.0.1" __pc_name__ = 'ApplySyntax' CSS = '''