new_release: fixed error handling when opening deliverable file
argparse parser object does not have .abort(), so the script fails with AttributeError stacktrace if e.g. the file does not exist. The intention of the original author was to call .error() so that's what we now use here. Change-Id: I71fc86251b7a48504e4ffcf1f0d715feb96141ab
This commit is contained in:
parent
29651876b5
commit
82e13a6c10
@ -84,7 +84,7 @@ def main():
|
||||
with open(deliverable_filename, 'r') as f:
|
||||
deliverable_info = yaml.safe_load(f)
|
||||
except (IOError, OSError) as e:
|
||||
parser.abort(e)
|
||||
parser.error(e)
|
||||
|
||||
# Determine the new version number.
|
||||
last_release = deliverable_info['releases'][-1]
|
||||
|
Loading…
x
Reference in New Issue
Block a user