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

runtime error in from_public_link when port is not 80 #290

Open
HengyueLi opened this issue May 15, 2024 · 0 comments
Open

runtime error in from_public_link when port is not 80 #290

HengyueLi opened this issue May 15, 2024 · 0 comments

Comments

@HengyueLi
Copy link

consider the placement with:

    @classmethod
    def from_public_link(cls, public_link, folder_password='', **kwargs):
        public_link_components = parse.urlparse(public_link)
        url = public_link_components.scheme + '://' + public_link_components.hostname
        if public_link_components.port:
            url += ":" + str(public_link_components.port)
        folder_token = public_link_components.path.split('/')[-1]
        anon_session = cls(url, **kwargs)
        anon_session.anon_login(folder_token, folder_password=folder_password)
        return anon_session
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