Skip to content
Snippets Groups Projects
  • Jeffrey Zhang's avatar
    d1676d38
    move sys.exit out of try finally block in set_config.py file · d1676d38
    Jeffrey Zhang authored
    when code exit by using sys.exit in try..catch block, it will skip catch
    and run the code in finally. Because SystemExit does not inherit from
    Exception.
    
    This patch moves sys.exit out of finally block. Then it won't execute
    when script exits by sys.exit
    
    Change-Id: I6457b1b861d2f9fdadce788ac6b719f46c7f2af3
    Partial-Bug: #1631503
    d1676d38
    History
    move sys.exit out of try finally block in set_config.py file
    Jeffrey Zhang authored
    when code exit by using sys.exit in try..catch block, it will skip catch
    and run the code in finally. Because SystemExit does not inherit from
    Exception.
    
    This patch moves sys.exit out of finally block. Then it won't execute
    when script exits by sys.exit
    
    Change-Id: I6457b1b861d2f9fdadce788ac6b719f46c7f2af3
    Partial-Bug: #1631503