From 5a81de5e6a8cb8e0a06becd860387d9204c40251 Mon Sep 17 00:00:00 2001 From: Edoardo Putti Date: Fri, 7 Oct 2016 22:39:37 +0200 Subject: [PATCH] raise IndexError instead of ValueError in RequestLookup --- lookup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lookup.py b/lookup.py index 2dcd2c7..aa763b8 100755 --- a/lookup.py +++ b/lookup.py @@ -54,7 +54,7 @@ class CALookup(object): result = c.fetchone() if not result: - raise ValueError('Unknown CA "%s"' % ca_id) + raise IndexError('Unknown CA "%s"' % ca_id) ca_name, ca_type = result