Closed MOmarMiraj closed 3 months ago
This MR will update example.py to show the correct error message when OP_SERVICE_ACCOUNT_TOKEN is empty.
example.py
OP_SERVICE_ACCOUNT_TOKEN
Before it would show this error: onepassword.lib.aarch64.op_uniffi_core.Error.Error: msg='invalid type: null, expected a string at line 1 column 28'
onepassword.lib.aarch64.op_uniffi_core.Error.Error: msg='invalid type: null, expected a string at line 1 column 28'
This was due to os.getenv setting the value of token to None when its empty instead of setting it as an empty string.
os.getenv
Updated the code to ensure that if the OP_SERVICE_ACCOUNT_TOKEN is empty than assign it as an empty string.
This MR will update
example.py
to show the correct error message whenOP_SERVICE_ACCOUNT_TOKEN
is empty.Before it would show this error:
onepassword.lib.aarch64.op_uniffi_core.Error.Error: msg='invalid type: null, expected a string at line 1 column 28'
This was due to
os.getenv
setting the value of token to None when its empty instead of setting it as an empty string.Updated the code to ensure that if the
OP_SERVICE_ACCOUNT_TOKEN
is empty than assign it as an empty string.