EVerest / everest-dev-environment

Useful tools for developing EVerest
Apache License 2.0
12 stars 15 forks source link

update get_git_repo_info to avoid KeyError exception #53

Closed james-ctc closed 10 hours ago

james-ctc commented 1 week ago

fix: get_git_repo_info result dictionary missing entries on error fix: bump version

Errors obtaining git information were triggering a KeyError exception and hence failing to generate release.json

Traceback (most recent call last):
  File "/home/james/venv/bin/edm", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/james/venv/lib/python3.12/site-packages/edm_tool/__init__.py", line 17, in main
    edm.main(get_parser())
  File "/home/james/venv/lib/python3.12/site-packages/edm_tool/edm.py", line 1667, in main
    args.action_handler(args)
  File "/home/james/venv/lib/python3.12/site-packages/edm_tool/edm.py", line 1301, in release_handler
    if everest_core_repo_info["rev"]:
       ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
KeyError: 'rev'