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

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

Open
zpol opened this issue Apr 2, 2019 · 1 comment
Open

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

zpol opened this issue Apr 2, 2019 · 1 comment

Comments

@zpol
Copy link

zpol commented Apr 2, 2019

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)
@zpol
Copy link
Author

zpol commented Apr 2, 2019

It just stop working a few days ago,....

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant