diff --git a/tasks/bills.py b/tasks/bills.py index c7ff21e4..2bdc9e61 100644 --- a/tasks/bills.py +++ b/tasks/bills.py @@ -45,7 +45,11 @@ def get_data_path(*args): args = list(args) if len(args) > 0: args.insert(1, "bills") - return os.path.join(utils.data_dir(), *args) + + data_path = os.path.join(utils.data_dir(), *args) + utils.mkdir_p(data_path) + + return data_path if not options.get('congress'): # Get a list of all congress directories on disk.