Skip to content
This repository was archived by the owner on Nov 12, 2022. It is now read-only.
This repository was archived by the owner on Nov 12, 2022. It is now read-only.

AttributeError: 'Pritunl' object has no attribute 'root' #1

@zpol

Description

@zpol

Traceback (most recent call last):
File "/tmp/pritunl-api-python/pritunl_api/init.py", line 299, in ping
raise PritunlErr("{0}:{1}".format(sys._getframe().f_code.co_name, self.root.BASE_URL))
AttributeError: 'Pritunl' object has no attribute 'root'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/tmp/pritunl-api-python/server.py", line 11, in
if pri.ping():
File "/tmp/pritunl-api-python/pritunl_api/init.py", line 301, in ping
raise PritunlErr("{0}:{1}".format(sys._getframe().f_code.co_name, self.root.BASE_URL))
AttributeError: 'Pritunl' object has no attribute 'root'

from pritunl_api import *

pri = Pritunl(url="https://pritunl.blah.cloud",
              token="xxxxxxx",
              secret="yyyyyyy")
if pri.ping():
    s = pri.server.get()
    print(s)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions