Subject: [software-properties] gracefully handle empty ppa spec From: Christian Ehrhardt If one only specifies ppa: as argument it passed the detection to be a ppa shortcut, but then failed with a python traceback as the remaining string was of zero length. To fix that it is now explicitly tested as well to achieve a graceful exit. Signed-off-by: Christian Ehrhardt --- [diffstat] ppa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) [diff] === modified file 'softwareproperties/ppa.py' --- softwareproperties/ppa.py 2014-09-20 01:14:22 +0000 +++ softwareproperties/ppa.py 2015-10-01 11:16:44 +0000 @@ -377,7 +377,7 @@ def shortcut_handler(shortcut): - if not shortcut.startswith("ppa:"): + if not shortcut.startswith("ppa:") or shortcut == "ppa:": return None return PPAShortcutHandler(shortcut)