We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78ef191 commit 19c4613Copy full SHA for 19c4613
atcodertools/tools/envgen.py
@@ -4,6 +4,7 @@
4
import os
5
import shutil
6
import sys
7
+import traceback
8
from multiprocessing import Pool, cpu_count
9
from os.path import expanduser
10
from time import sleep
@@ -218,7 +219,12 @@ def prepare_contest(atcoder_client: AtCoderClient,
218
219
thread_pool.map(func, tasks)
220
else:
221
for argv in tasks:
- func(argv)
222
+ try:
223
+ func(argv)
224
+ except Exception:
225
+ # Prevent the script from stopping
226
+ print(traceback.format_exc(), file=sys.stderr)
227
+ pass
228
229
if config.postprocess_config.exec_cmd_on_contest_dir is not None:
230
contest_dir_path = os.path.join(workspace_root_path, contest_id)
0 commit comments