commit | 573e121034f9f1def17586dcdeec6468ecd01de3 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Mon Feb 12 14:59:52 2018 -0800 |
committer | Colin Cross <ccross@android.com> | Mon Feb 12 15:06:11 2018 -0800 |
tree | 5e5629c3c9b49b8e6832575204af980357a111e8 | |
parent | 0b6256cf995fde4f24a1fc02abc9da45b3b9cf41 [diff] |
Fix error when using -p args.file is never set after Ieb9a87f16cf5e1c07a65186eff5df26d4ffcdd33, add a helper function to get the file instead to fix: Traceback (most recent call last): File "./update_current.py", line 576, in <module> if args.file: AttributeError: 'Namespace' object has no attribute 'file' Test: ./update_current.py -p 4583087 Change-Id: I4fdcf76a267e70f3eb3f3ec8a641983fd91b8357