Skip to content

Commit

Permalink
Run black
Browse files Browse the repository at this point in the history
  • Loading branch information
2015aroras committed Dec 5, 2023
1 parent 2aaee71 commit 1194989
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions olmo/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,9 @@ def _get_s3_profile_name(scheme: str) -> Optional[str]:
if scheme == "r2":
profile_name = os.environ.get("R2_PROFILE")
if profile_name is None:
raise OlmoEnvironmentError("R2 profile name is not set. Did you forget to set the 'R2_PROFILE' env var?")
raise OlmoEnvironmentError(
"R2 profile name is not set. Did you forget to set the 'R2_PROFILE' env var?"
)

return profile_name

Expand All @@ -466,7 +468,9 @@ def _get_s3_endpoint_url(scheme: str) -> Optional[str]:
if scheme == "r2":
r2_endpoint_url = os.environ.get("R2_ENDPOINT_URL")
if r2_endpoint_url is None:
raise OlmoEnvironmentError("R2 endpoint url is not set. Did you forget to set the 'R2_ENDPOINT_URL' env var?")
raise OlmoEnvironmentError(
"R2 endpoint url is not set. Did you forget to set the 'R2_ENDPOINT_URL' env var?"
)

return r2_endpoint_url

Expand Down

0 comments on commit 1194989

Please sign in to comment.