Skip to content

Commit

Permalink
fix: unchecked list access in Python SDK gen
Browse files Browse the repository at this point in the history
  • Loading branch information
jsenko committed Jul 8, 2024
1 parent f24a205 commit ea98186
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python-sdk/kiota-gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def generate_kiota_client_files(setup_kwargs):
if kiota_arch_name is None:
print("Unsupported architecture.")
exit(1)

if platform.processor()[0] == "arm" and kiota_arch_name == "x64":
processor = platform.processor()
if len(processor) == 1 and processor[0] == "arm" and kiota_arch_name == "x64":
kiota_arch_name = "arm64"

kiota_release_name = f"{kiota_os_name}-{kiota_arch_name}.zip"
Expand Down

0 comments on commit ea98186

Please sign in to comment.