Skip to content

Commit a4caf18

Browse files
authored
fix: defensive check for potential missing key (#69)
1 parent 3eec7f8 commit a4caf18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hivemind_bus_client/encryption.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def cpu_supports_AES() -> bool:
3232
Returns:
3333
bool: True if AES is supported by the CPU, False otherwise.
3434
"""
35-
return "aes" in get_cpu_info()["flags"]
35+
return "aes" in get_cpu_info().get("flags", [])
3636

3737

3838
class SupportedEncodings(str, enum.Enum):

0 commit comments

Comments
 (0)