kopia lustrzana https://github.com/jupyterhub/repo2docker
Use correct method to format datetime
rodzic
9f1a6406b6
commit
5947b756ba
|
@ -270,7 +270,7 @@ class RBuildPack(PythonBuildPack):
|
||||||
"""
|
"""
|
||||||
if self.checkpoint_date < RSPM_CUTOFF_DATE:
|
if self.checkpoint_date < RSPM_CUTOFF_DATE:
|
||||||
raise RuntimeError(
|
raise RuntimeError(
|
||||||
f'Microsoft killed MRAN, the source of R package snapshots before {RSPM_CUTOFF_DATE.strptime("%Y-%m-%d")}. '\
|
f'Microsoft killed MRAN, the source of R package snapshots before {RSPM_CUTOFF_DATE.strftime("%Y-%m-%d")}. '\
|
||||||
f'This repo has a snapshot date of {self.checkpoint_date.strftime("%Y-%m-%d")} specified in runtime.txt. '\
|
f'This repo has a snapshot date of {self.checkpoint_date.strftime("%Y-%m-%d")} specified in runtime.txt. '\
|
||||||
'Please use a newer snapshot date'
|
'Please use a newer snapshot date'
|
||||||
)
|
)
|
||||||
|
|
Ładowanie…
Reference in New Issue