File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ def to_bool(val):
107107
108108 CODALAB_IGNORE_CLEANUP_STEP = to_bool (get ("CODALAB_IGNORE_CLEANUP_STEP" ))
109109
110- WORKER_BUNDLE_URL_REWRITE = get ("WORKER_BUNDLE_URL_REWRITE" , "" )
110+ WORKER_BUNDLE_URL_REWRITE = get ("WORKER_BUNDLE_URL_REWRITE" , "" ). strip ()
111111
112112
113113# -----------------------------------------------
@@ -235,7 +235,7 @@ def show_progress(line, progress):
235235 total = total ,
236236 )
237237 except Exception as e :
238- if Settings .LOG_LEVEL == Settings .DEBUG :
238+ if Settings .LOG_LEVEL == Settings .LOG_LEVEL_DEBUG :
239239 logger .exception (f"There was an error showing the progress bar: { e } " )
240240
241241
@@ -296,7 +296,7 @@ def rewrite_bundle_url_if_needed(url):
296296
297297 Example: http://localhost:9000|http://minio:9000
298298 """
299- rule = Settings .WORKER_BUNDLE_URL_REWRITE . strip ()
299+ rule = Settings .WORKER_BUNDLE_URL_REWRITE
300300 if not rule or "|" not in rule :
301301 return url
302302 src , dst = rule .split ("|" , 1 )
You can’t perform that action at this time.
0 commit comments