Skip to content

Commit

Permalink
[bugfix] avoid crash when vuepy.yml is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Hoelzl committed Sep 13, 2018
1 parent 1f97f8f commit 6d61e6c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vuecli/provider.py
Expand Up @@ -38,7 +38,9 @@ def _load_config(self):
config_file = Path(self.path, "vuepy.yml")
if config_file.exists():
with open(config_file, "r") as fh:
self.config = yaml.load(fh.read())
config = yaml.load(fh.read())
if config:
self.config = config

def content(self, endpoint, route, content):
raise NotImplementedError()
Expand Down

0 comments on commit 6d61e6c

Please sign in to comment.