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

Recommended change to join function #1

Open
EeroFluge opened this issue Sep 3, 2022 · 0 comments
Open

Recommended change to join function #1

EeroFluge opened this issue Sep 3, 2022 · 0 comments

Comments

@EeroFluge
Copy link

Ref:

def join(a, *p):

I ran into a failure of this function when trying to upgrade OctoPrint. The error was 'NoneType' object has no attribute 'endswith'.

This was caused by the first input argument, a, being of type None. I added the following check:
path = a
if path == None:
path = ""

This fixed the problem and the OctoPrint upgrade finished correctly.

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