Skip to content

Commit

Permalink
bin/update-schedule.py: Fix the fallback to the current year
Browse files Browse the repository at this point in the history
Looks like I forgot to test that path. This fixes the following error:
```
    wd = os.path.join(basedir, year)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen posixpath>", line 90, in join
  File "<frozen genericpath>", line 152, in _check_arg_types
TypeError: join() argument must be str, bytes, or os.PathLike object, not 'int'
```
  • Loading branch information
primeos committed Jun 21, 2024
1 parent 3e46379 commit 2651dfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/update-schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 2651dfc

Please sign in to comment.