Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Commit

Permalink
safety_check: We can handle missing profile files now
Browse files Browse the repository at this point in the history
  • Loading branch information
mineo committed May 20, 2016
1 parent 74f5a9a commit 15a6357
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions abzer/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@


def safety_check(config):
for filename in [config.get("essentia", "path"),
config.get("essentia", "profile")]:
if not isfile(filename):
exit("%s does not exist" % filename)
filename = config.get("essentia", "path")
if not isfile(filename):
exit("%s does not exist" % filename)


def main():
Expand Down

0 comments on commit 15a6357

Please sign in to comment.