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

FileNotFoundError not defined #42

Closed
rjmoggach opened this issue Jul 23, 2016 · 4 comments
Closed

FileNotFoundError not defined #42

rjmoggach opened this issue Jul 23, 2016 · 4 comments

Comments

@rjmoggach
Copy link

Django 1.9+

NameError at /
global name 'FileNotFoundError' is not defined

Exception Value:     global name 'FileNotFoundError' is not defined

Here's the offender:

    templatetags/sass_tags.py
    38: except FileNotFoundError as e: 
@rjmoggach
Copy link
Author

rjmoggach commented Jul 23, 2016

seems to be Python 2.7 related -

Inserting the following after the import statements in sass_tags.py reveals the underlying CompileError:

try:
    FileNotFoundError
except NameError:
    FileNotFoundError = IOError

(This will fix the issue)

@jrief jrief closed this as completed in eb2c067 Jul 23, 2016
@jrief
Copy link
Owner

jrief commented Jul 23, 2016

Please retry. I then will release version 0.4.5

@rjmoggach
Copy link
Author

Works

On Jul 23, 2016, at 1:39 PM, Jacob Rief notifications@github.com wrote:

Please retry. I then will release version 0.4.5


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@jrief
Copy link
Owner

jrief commented Jul 24, 2016

Version 0.4.5 is available on PyPI.
Thanks for reporting.

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

2 participants