From 29ee4c314eae002f1e49cfa5106244fee9a26a14 Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Fri, 20 Dec 2024 17:20:24 -0800 Subject: [PATCH] Re-add warnings usage in one place This actually seems appropriate --- repo2docker/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/repo2docker/utils.py b/repo2docker/utils.py index 443db97e2..9c2769e1d 100644 --- a/repo2docker/utils.py +++ b/repo2docker/utils.py @@ -543,4 +543,5 @@ def get_platform(): # OSX reports arm64 return "linux/arm64" else: - raise ValueError("Unsupported platform {m}") + warnings.warn(f"Unexpected platform '{m}', defaulting to linux/amd64") + return "linux/amd64"