Skip to content

Commit 29ee4c3

Browse files
committed
Re-add warnings usage in one place
This actually seems appropriate
1 parent 025277d commit 29ee4c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

repo2docker/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,4 +543,5 @@ def get_platform():
543543
# OSX reports arm64
544544
return "linux/arm64"
545545
else:
546-
raise ValueError("Unsupported platform {m}")
546+
warnings.warn(f"Unexpected platform '{m}', defaulting to linux/amd64")
547+
return "linux/amd64"

0 commit comments

Comments
 (0)