Add a state file existence check
This prevents
`LOG: MainThread DEBUG IOError loading stored state`
Which is a little misleading (and the next log line is `No existing state found`, which is the expected message)
diff --git a/tools/wptrunner/wptrunner/update/state.py b/tools/wptrunner/wptrunner/update/state.py
index 9454414..dc459da 100644
--- a/tools/wptrunner/wptrunner/update/state.py
+++ b/tools/wptrunner/wptrunner/update/state.py
@@ -44,6 +44,8 @@
def load(cls, logger):
"""Load saved state from a file"""
try:
+ if not os.path.isfile(cls.filename):
+ return None
with open(cls.filename) as f:
try:
rv = pickle.load(f)