Skip to content

Commit

Permalink
Re-add warnings usage in one place
Browse files Browse the repository at this point in the history
This actually seems appropriate
  • Loading branch information
yuvipanda committed Dec 21, 2024
1 parent 025277d commit 29ee4c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion repo2docker/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 29ee4c3

Please sign in to comment.