fix usage exception

This commit is contained in:
Ryan Pessa 2016-03-26 17:17:10 -05:00
parent f9cc07dfe1
commit fba03a8d3b
4 changed files with 9 additions and 3 deletions

View file

@ -892,7 +892,10 @@ class Buildozer(object):
print('Available targets:')
targets = list(self.targets())
for target, m in targets:
doc = m.__doc__.strip().splitlines()[0].strip()
try:
doc = m.__doc__.strip().splitlines()[0].strip()
except Exception:
doc = '<no description>'
print(' {0:<18} {1}'.format(target, doc))
print('')

View file

@ -1,5 +1,5 @@
'''
Android target, based on python-for-android project
Android target, based on python-for-android project (old toolchain)
'''
#
# Android target

View file

@ -1,4 +1,7 @@
# coding=utf-8
'''
Android target, based on python-for-android project (new toolchain)
'''
from buildozer.targets.android import TargetAndroid
from os.path import join, expanduser

View file

@ -1,5 +1,5 @@
'''
iOS target, based on kivy-ios project. (not working yet.)
iOS target, based on kivy-ios project
'''
import sys