From ea03a419450978c002073350ce20fee8e9aef894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolai=20S=C3=B8borg?= Date: Tue, 14 Jan 2020 23:07:25 +0000 Subject: [PATCH] Fix `get_copyright` when year is not defined --- elf2deb/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elf2deb/__main__.py b/elf2deb/__main__.py index 3e926f0..6f8f263 100644 --- a/elf2deb/__main__.py +++ b/elf2deb/__main__.py @@ -5,7 +5,7 @@ from pathlib import Path from zipfile import ZipFile -__version__ = "1.2.0" +__version__ = "1.2.1" TEMPLATE_DIR = "templates/" def main(): @@ -79,7 +79,7 @@ def get_copyright(args): exit(1) license_txt = r.json()["body"] - year = args.license_year or datetime.now().year + year = args.license_year or str(datetime.now().year) fullname = args.license_holder or args.author_name # MIT