From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
Date: Sat, 16 Sep 2023 13:46:34 +0200
Subject: Handle architecture exception thrown by cpuinfo

---
 src/pytest_benchmark/plugin.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

--- a/src/pytest_benchmark/plugin.py
+++ b/src/pytest_benchmark/plugin.py
@@ -393,9 +393,11 @@
 
 
 def get_cpu_info():
-    import cpuinfo  # noqa: PLC0415
-
-    return cpuinfo.get_cpu_info() or {}
+    try:
+        import cpuinfo
+        return cpuinfo.get_cpu_info() or {}
+    except Exception as e:
+        return {"error": str(e)}
 
 
 def pytest_benchmark_scale_unit(config, unit, benchmarks, best, worst, sort):
