Skip to content

Fix stats error on mac M1 chips

What does this MR do and why?

Broadens the scope of an execpt in stats.py to catch a FileNotFound error for Mac M1 chips using psutil cpu_freq.

Fixes #188 (closed)

Screenshots or screen recordings

image

How to set up and validate locally

Try to start Crafty and navigate to dashboard on master on a mac with an M1 chip.

Try to start Crafty and navigate to dashboard on this branch on a mac with an M1 chip.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

  • Have you checked this doesn't interfere/conflict/duplicate someone elses work?
  • Have you fully tested your changes?
  • Have you resolved any lint issues?
  • Have you assigned a reviewer?
  • Have you applied correct labels?
Edited by Andrew

Merge request reports

Loading