diff --git a/pytests/test_touch.py b/pytests/test_touch.py
index f5a1885e8f7556485c738636304cb61e50993a6b..91095e2c321ad4993d28087874e82e99e791c157 100644
--- a/pytests/test_touch.py
+++ b/pytests/test_touch.py
@@ -4,8 +4,11 @@ import pytest
 
 
 def read_firmware_version():
-    with open('/sys/kernel/debug/edt_ft5x06/fw_version') as f:
-        return int(f.read())
+    try:
+        with open('/sys/kernel/debug/edt_ft5x06/fw_version') as f:
+            return int(f.read())
+    except Exception:
+        return 0
 
 
 @pytest.mark.skipif(not boardtype.is_librem5(), reason="Not a phone")