Skip to content

Commit ae39fd4

Browse files
committed
minor updates
1 parent 70f4c12 commit ae39fd4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

compute_worker/compute_worker.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)