diff --git a/app/generator.py b/app/generator.py index 90d5703..2bf29f8 100644 --- a/app/generator.py +++ b/app/generator.py @@ -3,7 +3,6 @@ from app import api from app.utils import get_repository_name, to_json, write_json, read_json, create_if_not_exists from abc import abstractmethod - class Generator: _api: api.Api @@ -137,8 +136,8 @@ class DonationsGenerator(Generator): super().__init__("donations", api) def generate(self, config, path): - donation_links = config["links"] - donation_wallets = config["wallets"] + donation_links = config["links"] if "links" in config else [] + donation_wallets = config["wallets"] if "wallets" in config else [] donation_path = join(path, f"donations.json")