diff --git a/wp1/scores_test.py b/wp1/scores_test.py index affd3ef1..40ccc19f 100644 --- a/wp1/scores_test.py +++ b/wp1/scores_test.py @@ -116,7 +116,8 @@ def test_download_pageviews(self, mock_get_response, mock_datetime): mock_get_response.return_value = context file_path = scores.get_cur_file_path() - os.remove(file_path) + if os.path.exists(file_path): + os.remove(file_path) scores.download_pageviews()