commit c66ded00c72eb3c310fb977400912f2c39114adf Author: Pierre-Yves Chibon pingou@pingoured.fr Date: Wed Dec 2 15:52:28 2015 +0100
Make sure we never return None when we expect a dictionary
Fixes https://github.com/fedora-infra/packagedb-cli/issues/34
pkgdb2client/__init__.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) --- diff --git a/pkgdb2client/__init__.py b/pkgdb2client/__init__.py index a4743c9..d21b654 100644 --- a/pkgdb2client/__init__.py +++ b/pkgdb2client/__init__.py @@ -360,6 +360,9 @@ class PkgDB(object): 'No output returned by %s' % response.url) else: raise PkgDBException(output) + elif output is None: + raise PkgDBException( + 'No output returned by %s' % response.url)
return output
packagedb-cli-commits@lists.stg.fedorahosted.org