From 2651dfcc3c31798404c600fd57125988f94a03d9 Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Fri, 21 Jun 2024 18:04:45 +0200 Subject: [PATCH] bin/update-schedule.py: Fix the fallback to the current year Looks like I forgot to test that path. This fixes the following error: ``` wd = os.path.join(basedir, year) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 90, in join File "", line 152, in _check_arg_types TypeError: join() argument must be str, bytes, or os.PathLike object, not 'int' ``` --- bin/update-schedule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/update-schedule.py b/bin/update-schedule.py index 9ce5155..bc5992f 100755 --- a/bin/update-schedule.py +++ b/bin/update-schedule.py @@ -10,7 +10,7 @@ def select_year(): """Select the year, cd into the corresponding directory, and return the year.""" # Default to the current year: - year = int(datetime.now().year) + year = str(datetime.now().year) # Override based on the current directory: dirname = os.getcwd().split('/')[-1]