From 8faa6da47bd21e16ea024c30e21bed4122662261 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Jun 26 2017 09:24:14 +0000 Subject: BZ summary: Do not override a good error message with a bad one Fixes https://pagure.io/pkgdb2/issue/62 --- diff --git a/pkgdb2/api/extras.py b/pkgdb2/api/extras.py index 8110dd6..c452d24 100644 --- a/pkgdb2/api/extras.py +++ b/pkgdb2/api/extras.py @@ -803,7 +803,7 @@ def api_pkgrequest(bzid): 'present)' # Check the format of the title - if not ' - ' in tmp: + if tmp and not ' - ' in tmp: httpcode = 400 output['output'] = 'notok' output['error'] = 'Invalid title for this bugzilla ticket (no "-" '\