Browse Source

raise IndexError instead of ValueError in RequestLookup

master
Edoardo Putti 8 years ago
parent
commit
5a81de5e6a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lookup.py

+ 1
- 1
lookup.py View File

@ -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


Loading…
Cancel
Save