File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 22import platform
33
44
5- if platform .machine ().lower () == "x86_64" or platform .machine ().lower () == "amd64" :
5+ machine_arch = platform .machine ().lower ()
6+
7+ if machine_arch in ["x86_64" , "amd64" ]:
68 import onepassword .lib .x86_64 .op_uniffi_core as core
7- elif platform . machine (). lower () == "aarch64" or platform . machine (). lower () == "arm64" :
9+ elif machine_arch in [ "aarch64" , "arm64" ] :
810 import onepassword .lib .aarch64 .op_uniffi_core as core
911else :
10- raise ImportError (
11- "your machine's architecture is not currently supported: {}" .format (
12- platform .machine ()
13- )
14- )
12+ raise ImportError (f"Your machine's architecture is not currently supported: { machine_arch } " )
1513
1614
1715# InitClient creates a client instance in the current core module and returns its unique ID.
You can’t perform that action at this time.
0 commit comments