[Pcsclite-cvs-commit] r5003 - /website/matrix.py
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Wed Jun 16 18:28:33 UTC 2010
Author: rousseau
Date: Wed Jun 16 18:28:32 2010
New Revision: 5003
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5003
Log:
correctly handle reader present in no version
Modified:
website/matrix.py
Modified: website/matrix.py
URL: http://svn.debian.org/wsvn/pcsclite/website/matrix.py?rev=5003&op=diff
==============================================================================
--- website/matrix.py (original)
+++ website/matrix.py Wed Jun 16 18:28:32 2010
@@ -231,6 +231,7 @@
"""
search a log line containing the reader string
"""
+ found = None
for line in changelog:
if reader in line:
found = line
@@ -241,7 +242,7 @@
# revision is the inner matching pattern
return int(result.group(1))
else:
- print "reader: %s not found in log", reader
+ raise Exception("reader %s not found in log" % reader)
def get_by_manufacturer(readers):
More information about the Pcsclite-cvs-commit
mailing list