diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2018-01-23 18:46:09 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2018-01-23 19:15:51 +0300 |
commit | ba59c8e0ce0aebc933aa0e51724d6e8f6e2f1378 (patch) | |
tree | 566a1b739c701e2b7d58f5239d89707b951f17ab | |
parent | 730c7eebef23c43e30542da192b9616f1062a0c5 (diff) |
Don't terminate with an exception after an invalid override.hint
-rwxr-xr-x | calm/package.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/calm/package.py b/calm/package.py index bd6768d..e50d7bb 100755 --- a/calm/package.py +++ b/calm/package.py @@ -198,6 +198,8 @@ def read_package(packages, basedir, dirpath, files, strict=False, remove=[], upl if 'override.hint' in files: # read override.hint override_hints = read_hints(p, os.path.join(dirpath, 'override.hint'), hint.override) + if not override_hints: + return True files.remove('override.hint') else: override_hints = {} |