mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 15:41:09 +00:00
sponsor-patch: Fix 'NoneType' object has no attribute 'startwith'.
This commit is contained in:
parent
44fe4e6205
commit
4bd431e1bc
@ -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." \
|
||||
|
Loading…
x
Reference in New Issue
Block a user