Skip to content

Commit dbb5ff7

Browse files
committed
Clarify when mran raises valueerror
1 parent 8d194b2 commit dbb5ff7

File tree

1 file changed

+4
-5
lines changed
  • repo2docker/buildpacks

1 file changed

+4
-5
lines changed

repo2docker/buildpacks/r.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,11 @@ def get_mran_snapshot_url(self, snapshot_date, max_days_prior=7):
217217
r = requests.head(url)
218218
if r.ok:
219219
return url
220-
else:
221-
raise ValueError(
222-
"No snapshot found for {} or {} days prior in mran.microsoft.com".format(
223-
snapshot_date.strftime("%Y-%m-%d"), max_days_prior
224-
)
220+
raise ValueError(
221+
"No snapshot found for {} or {} days prior in mran.microsoft.com".format(
222+
snapshot_date.strftime("%Y-%m-%d"), max_days_prior
225223
)
224+
)
226225

227226
def get_cran_mirror_url(self, snapshot_date):
228227
# Date after which we will use rspm + binary packages instead of MRAN + source packages

0 commit comments

Comments
 (0)