From 2bea112b91a8d791cbe8c109ee887f1d9c361cef Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Wed, 2 Jun 2021 16:08:16 +0200 Subject: [PATCH] [scripts.mirror] Fix use of start_date variable --- bob/devtools/scripts/mirror.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bob/devtools/scripts/mirror.py b/bob/devtools/scripts/mirror.py index 0635143b..14884bb5 100644 --- a/bob/devtools/scripts/mirror.py +++ b/bob/devtools/scripts/mirror.py @@ -183,7 +183,8 @@ def mirror( verbose=False, ) - start_date = start_date.date() # only interested on the day itself + if start_date is not None: + start_date = start_date.date() # only interested on the day itself for arch in DEFAULT_SUBDIRS: -- GitLab