Skip to content

Commit

Permalink
fix: [main] fix ios_version fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
cvandeplas committed Oct 21, 2024
1 parent e896c57 commit a6747f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sysdiagnose/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def create_case(self, sysdiagnose_file: str, force: bool = False, case_id: bool
try:
case['serial_number'] = remotectl_dumpstate_json['Local device']['Properties']['SerialNumber']
case['unique_device_id'] = remotectl_dumpstate_json['Local device']['Properties']['UniqueDeviceID']
case['version'] = remotectl_dumpstate_json['Local device']['Properties']['OSVersion']
case['ios_version'] = remotectl_dumpstate_json['Local device']['Properties']['OSVersion']
except (KeyError, TypeError) as e:
print(f"WARNING: Could not parse remotectl_dumpstate, and therefore extract serial numbers. Error {e}")

Expand Down

0 comments on commit a6747f9

Please sign in to comment.