Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_get_custom_css results in sass.CompileError when custom_scss path is not found by finders #92

Open
kbakk opened this issue Aug 6, 2022 · 0 comments

Comments

@kbakk
Copy link

kbakk commented Aug 6, 2022

I have set Bulma settings to

BULMA_SETTINGS = {
    "custom_scss": [
        "cant/find/this.scss"
    ]
}

I expect to see ValueError: Unable to locate the SCSS file .... However I get an unhelpful sass.CompileError instead:

sass.CompileError: Error: File to import not found or unreadable: [].

It looks like this package has an helpful error that should be show, however

if absolute_path is None:

when this step is run, the value is an empty list [], so the comparison to None is evaluated as false.

Suggestion: Change expression to if not absolute_path (I can submit a PR with that if desired).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant