-
Notifications
You must be signed in to change notification settings - Fork 457
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
UnboundLocalError exception in nikola deploy
#3479
Labels
Comments
It would be awesome to see this fix in a bugfix release :) |
This was referenced Jan 11, 2021
If I am not mistaken, there is no such bug fix release, does anyone happen to know which was the last release that didn't have this regression? I would downgrade to that. |
I just released Nikola v8.1.3 with the fix for this. |
devilgate
pushed a commit
to devilgate/nikola
that referenced
this issue
Jul 14, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Python Version:
Python 3.7.9
Nikola Version:
Nikola v8.1.2 (installed from git master)
Operating System:
FreeBSD 12.2-RELEASE amd64
Description:
On running
nikola deploy
on a new site, after rsync completes, this exception is thrown:I looked at the source and noticed that
clean
is only set inside a condition:nikola/nikola/plugins/command/deploy.py
Lines 50 to 56 in d0ef5b6
To try and fix it, I changed the source to:
That leads to another exception elsewhere:
Which was fixed by changing the source code at:
nikola/nikola/plugins/command/deploy.py
Lines 98 to 99 in d0ef5b6
to:
After this the deploy command has worked as I expected.
The text was updated successfully, but these errors were encountered: