real name can't be None

This commit is contained in:
Daniel Martí 2013-06-12 12:05:55 +02:00
parent a452cdb704
commit ed64737678

View file

@ -885,9 +885,12 @@ def fetch_real_name(app_dir):
matches = string_search(line) matches = string_search(line)
if matches: if matches:
name2 = matches.group(1) name2 = matches.group(1)
return name2 if name2 is not None:
return name2
return name if name is not None:
return name
return ''
# Extract some information from the AndroidManifest.xml at the given path. # Extract some information from the AndroidManifest.xml at the given path.
# Returns (version, vercode, package), any or all of which might be None. # Returns (version, vercode, package), any or all of which might be None.