Skip to content

Commit

Permalink
Fix backfiller with no args
Browse files Browse the repository at this point in the history
  • Loading branch information
ghickman committed Nov 1, 2023
1 parent 93bb45c commit 62a82ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backfill.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def next_weekday(d, weekday):

# hacky switch for [re-]building the local SQLite
args = sys.argv[1:]
if args[0] and args[0] == "--pull-data":
if args and args[0] == "--pull-data":
# clean up existing db
Path(db).unlink(missing_ok=True)

Expand Down

0 comments on commit 62a82ca

Please sign in to comment.