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:
parent
676ad35a1b
commit
120d609f58
1 changed files with 3 additions and 0 deletions
|
@ -125,6 +125,9 @@ def local_toml(toml, version):
|
||||||
doc_files = get_doc_files(toml)
|
doc_files = get_doc_files(toml)
|
||||||
license_files = get_license_files(toml)
|
license_files = get_license_files(toml)
|
||||||
toml = os.path.join(toml, "Cargo.toml")
|
toml = os.path.join(toml, "Cargo.toml")
|
||||||
|
else:
|
||||||
|
doc_files = []
|
||||||
|
license_files = []
|
||||||
|
|
||||||
return toml, None, version, doc_files, license_files
|
return toml, None, version, doc_files, license_files
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue