Skip to content

Commit

Permalink
Fix missing credentials dict creation
Browse files Browse the repository at this point in the history
  • Loading branch information
sameer committed Apr 8, 2019
1 parent 3be9524 commit e0b995c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ultimaker/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def __init__(self, address: str, port: int, identity: Identity, credentials: Cre

def acquire_credentials(self):
credentials_json = self.post_auth_request()
self.set_credentials(credentials_json)
self.set_credentials(Credentials(**credentials_json))

def save_credentials(self, credentials_dict: CredentialsDict):
credentials_dict[self.get_system_guid()] = self.get_credentials()
Expand Down

0 comments on commit e0b995c

Please sign in to comment.