Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66ed06fb authored by Kelvin Zhang's avatar Kelvin Zhang
Browse files

Re-raise exceptions instead of sys.exit

If we call sys.exit(), code in finally block won't be executed.
Test: th

Change-Id: I1f743c9385218742def3b925427942cb1d5bd031
parent 55e65113
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1383,6 +1383,6 @@ if __name__ == '__main__':
    main(sys.argv[1:])
  except common.ExternalError as e:
    print("\n   ERROR: %s\n" % (e,))
    sys.exit(1)
    raise
  finally:
    common.Cleanup()