Fix crash when path to a toml file is given

Fixes a programming error introduced in b284d61ee7, the
variables were not defined.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2021-09-28 13:08:31 +02:00
parent 676ad35a1b
commit 120d609f58

View file

@ -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