Skip to content

Commit ea77aa1

Browse files
committed
Adjust example and error msg
1 parent 791cd1e commit ea77aa1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

example/desktop_app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ async def main():
88
# Connects to the 1Password desktop app.
99
client = await Client.authenticate(
1010
auth=DesktopAuth(
11-
account_name="AndiTituTest" # Set to your 1Password account name.
11+
account_name="YourAccountNameAsItAppearsInTheApp" # Set to your 1Password account name.
1212
),
1313
# Set the following to your own integration name and version.
1414
integration_name="My 1Password Integration",
@@ -22,7 +22,7 @@ async def main():
2222
# [developer-docs.sdk.python.list-vaults]-end
2323

2424
# [developer-docs.sdk.python.list-items]-start
25-
overviews = await client.items.list("xw33qlvug6moegr3wkk5zkenoa")
25+
overviews = await client.items.list(vault.id)
2626
for overview in overviews:
2727
print(overview.title)
2828
# [developer-docs.sdk.python.list-items]-end

src/onepassword/desktop_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def call_shared_library(self, payload: str, operation_kind: str) -> bytes:
6565
)
6666

6767
if ret != 0:
68-
raise RuntimeError(f"send_message failed with code {ret}. Please make sure the Desktop app intehration setting is enabled, or contact 1Password support.")
68+
raise RuntimeError(f"send_message failed with code {ret}. Please make sure the Desktop app integration setting is enabled, or contact 1Password support.")
6969

7070
# Copy bytes into Python
7171
data = ctypes.string_at(out_buf, out_len.value)

0 commit comments

Comments
 (0)