Browse Source

Check app_id presence

feat
Laurent Kislaire 3 years ago
parent
commit
bbc0cd20cb
  1. 3
      pyfbx/client.py

3
pyfbx/client.py

@ -86,6 +86,7 @@ class Fbx():
def __init__(self, url=None, nomdns=False, session=None):
self.log = logging.getLogger("pyfbx.fbx")
self._trn = FbxTransport(url, nomdns=nomdns, session=session)
self.app_id = None
# Create on the fly attributes to classes
_globals = globals()
@ -116,6 +117,8 @@ class Fbx():
self.token = token
if app_id:
self.app_id = app_id
elif not self.app_id:
raise Exception("Missing app_id")
login = self._trn.api_exec("GET", "login/")
if not login['logged_in']:
data = {

Loading…
Cancel
Save