Fix blank module handling in mbc build and bump alpine base in dockerfile

This commit is contained in:
Tulir Asokan 2019-02-13 19:40:21 +02:00
parent 56a11fdceb
commit c01cf127be
2 changed files with 2 additions and 2 deletions

View file

@ -88,7 +88,7 @@ def write_plugin(meta: PluginMeta, output: Union[str, IO]) -> None:
for module in meta.modules:
if os.path.isfile(f"{module}.py"):
zip.write(f"{module}.py")
elif os.path.isdir(module):
elif module is not None and os.path.isdir(module):
zipdir(zip, module)
else:
print(Fore.YELLOW + f"Module {module} not found, skipping" + Fore.RESET)