diff --git a/methods.py b/methods.py index 3872da24886..b70d60c9b2e 100644 --- a/methods.py +++ b/methods.py @@ -950,9 +950,12 @@ def show_progress(env): return total_size def progress_finish(target, source, env): - with open(node_count_data["fname"], "w") as f: - f.write("%d\n" % node_count_data["count"]) - progressor.delete(progressor.file_list()) + try: + with open(node_count_data["fname"], "w") as f: + f.write("%d\n" % node_count_data["count"]) + progressor.delete(progressor.file_list()) + except Exception: + pass try: with open(node_count_data["fname"]) as f: