Skip to content

mincss crashes when stylesheet links have query strings #53

Open

Description

@layoutanalysis
>mincss http://web.archive.org/web/20140208025552/http://www.clarin.com/
[output omitted]
FOR /static/css/banner-styles.css?v=1516052760.0
Traceback (most recent call last):
  File "c:\program files\anaconda3\lib\runpy.py", line 184, in _run_module_as_ma
in
    "__main__", mod_spec)
  File "c:\program files\anaconda3\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Program Files\Anaconda3\Scripts\mincss.exe\__main__.py", line 9, in <
module>
  File "c:\program files\anaconda3\lib\site-packages\mincss\main.py", line 69, i
n main
    return run(args) or 0
  File "c:\program files\anaconda3\lib\site-packages\mincss\main.py", line 37, i
n run
    with io.open(os.path.join(output_dir, orig_name), 'w') as f:
OSError: [Errno 22] Invalid argument: './output\\banner-styles.css?v=1516052760.
0'

Activity

  1. peterbe commented on Jan 18, 2018

    @peterbe
    Owner

    Interesting. But it's unlikely that I'll get around to making a patch to fix this. Do you want to attempt to write a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions