Handle empty case.

This commit is contained in:
Alberto Donato 2015-11-04 19:21:24 +02:00
parent f852afd166
commit f9a0b4d390
1 changed files with 2 additions and 2 deletions

View File

@ -52,8 +52,8 @@ def controller_api_joined(r_id=None):
@hooks.hook()
def install():
if config["install-sources"]:
configure_sources(update=True, sources_var="install_sources")
if config.get("install-sources"):
configure_sources(update=True, sources_var="install-sources")
# install packages
apt_install(PACKAGES, fatal=True)