sponsor-patch: Fix 'NoneType' object has no attribute 'startwith'.

This commit is contained in:
Benjamin Drung 2010-08-20 02:11:18 +02:00
parent 44fe4e6205
commit 4bd431e1bc

View File

@ -512,7 +512,7 @@ def main(script_name, bug_number, build, edit, keyid, upload, verbose=False):
% (changelog.distributions, ", ".join(allowed)))
ask_for_manual_fixing()
continue
elif upload.startwith("ppa/"):
elif upload and upload.startwith("ppa/"):
allowed = supported_series + [devel_series]
if changelog.distributions not in allowed:
Print.error("%s is not an allowed series. It needs to be one of %s." \