From 4bd431e1bc58237a68b58c383b65ebef01525743 Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Fri, 20 Aug 2010 02:11:18 +0200 Subject: [PATCH] sponsor-patch: Fix 'NoneType' object has no attribute 'startwith'. --- sponsor-patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sponsor-patch b/sponsor-patch index c308246..96c19ef 100755 --- a/sponsor-patch +++ b/sponsor-patch @@ -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." \