Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • kis_tools kis_tools
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 33
    • Issues 33
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sdc
  • kis_toolskis_tools
  • Issues
  • #301

Closed
Open
Created Feb 01, 2022 by Carl Schaffer@schafferOwner

translate_header gracious error code on missing run

 __  ___  __       _______.   .___________.  ______     ______    __          _______.
|  |/  / |  |     /       |   |           | /  __  \   /  __  \  |  |        /       |
|  '  /  |  |    |   (----`   `---|  |----`|  |  |  | |  |  |  | |  |       |   (----`
|    <   |  |     \   \           |  |     |  |  |  | |  |  |  | |  |        \   \    
|  .  \  |  | .----)   |          |  |     |  `--'  | |  `--'  | |  `----.----)   |   
|__|\__\ |__| |_______/           |__|      \______/   \______/  |_______|_______/    

Traceback (most recent call last):
  File "/usr/local/bin/gris_translate_header", line 9, in <module>
    run_translate_header(sys.argv[1:])
  File "/usr/local/lib/python3.8/site-packages/kis_tools/gris/headers/translate_header.py", line 307, in run_translate_header
    files = groupby_gris_run(files)[args.run]
KeyError: 2

If translate header is called with a non-existent run, the tool should exit graciously. Same goes for the splitter tool

Edited Feb 01, 2022 by Carl Schaffer
Assignee
Assign to
Time tracking