chiark / gitweb /
init: fix test for aapt when no aapt has been found
authorHans-Christoph Steiner <hans@eds.org>
Wed, 6 Dec 2017 12:41:03 +0000 (13:41 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Wed, 6 Dec 2017 19:20:17 +0000 (20:20 +0100)
commit1a77c6af3863c76192e1b472183a8c6ae9679f71
tree62b9049510d7a4025e22a6a998c126ad4f0fb5a9
parent964ef996a01ceac8d6735668f2c9fd9119512346
init: fix test for aapt when no aapt has been found

Just give a proper error message rather than this stack trace:

Traceback (most recent call last):
  File "/home/hans/code/fdroid/server/fdroid", line 156, in <module>
    main()
  File "/home/hans/code/fdroid/server/fdroid", line 132, in main
    mod.main()
  File "/export/share/code/fdroid/server/fdroidserver/init.py", line 148, in main
    if os.path.isfile(aapt):
  File "/usr/lib/python3.5/genericpath.py", line 30, in isfile
    st = os.stat(path)
fdroidserver/init.py