Don't crash when there are styles that don't apply to any element Without this patch, if CSS has any unused rules, this exception occurs:
File "/usr/lib/python3/dist-packages/pynliner/__init__.py", line 308, in fromURL return Pynliner(**kwargs).from_url(url).run() File "/usr/lib/python3/dist-packages/pynliner/__init__.py", line 139, in run self._apply_styles() File "/usr/lib/python3/dist-packages/pynliner/__init__.py", line 262, in _apply_styles for element in select(self.soup, selector.selectorText): File "/usr/lib/python3/dist-packages/pynliner/soupselect.py", line 118, in select raise Exception("No match was found. We're done or something is broken")