/ autoreview / __main__.py
__main__.py
 1  import sys
 2  
 3  if __name__ == "__main__":
 4      try:
 5          from autoreview.cli import main
 6      except ImportError as e:
 7          print(
 8              "autoreview could not be imported (is the package installed?).",
 9              e,
10              file=sys.stderr,
11          )
12          raise SystemExit(1) from e
13      try:
14          raise SystemExit(main())
15      except KeyboardInterrupt:
16          raise SystemExit(130) from None