From 120d609f588444279f7d4617f7022b36c7461a3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 28 Sep 2021 13:08:31 +0200 Subject: [PATCH] Fix crash when path to a toml file is given Fixes a programming error introduced in b284d61ee7, the variables were not defined. --- rust2rpm/__main__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rust2rpm/__main__.py b/rust2rpm/__main__.py index b2d82a2..b57e312 100644 --- a/rust2rpm/__main__.py +++ b/rust2rpm/__main__.py @@ -125,6 +125,9 @@ def local_toml(toml, version): doc_files = get_doc_files(toml) license_files = get_license_files(toml) toml = os.path.join(toml, "Cargo.toml") + else: + doc_files = [] + license_files = [] return toml, None, version, doc_files, license_files