Skip to content

Recommended change to join function #1

Open
@EeroFluge

Description

@EeroFluge

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions