[Pcsclite-cvs-commit] r6222 - /website/generate_supported_readers.py

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Tue Feb 14 19:52:15 UTC 2012


Author: rousseau
Date: Tue Feb 14 19:52:14 2012
New Revision: 6222

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6222
Log:
Do not fail if a reader do not exist in supported_readers.txt

Typically this is the case now when a new reader is added. The old
manual name do not exists.

Modified:
    website/generate_supported_readers.py

Modified: website/generate_supported_readers.py
URL: http://svn.debian.org/wsvn/pcsclite/website/generate_supported_readers.py?rev=6222&op=diff
==============================================================================
--- website/generate_supported_readers.py (original)
+++ website/generate_supported_readers.py Tue Feb 14 19:52:14 2012
@@ -79,10 +79,14 @@
             name = "%s %s" % (readers[reader]['iManufacturer'],
                 readers[reader]['iProduct'])
             output_file.write("%s%s:%s\n" % (state, key, name))
-            manual_name = manual_names[key]
-            if Difference and manual_name.upper() not in name.upper():
-                output_file.write("# DIFFERENCE: %s (for %s)\n\n" %
-                    (manual_names[key], reader))
+            if Difference:
+                try:
+                    manual_name = manual_names[key]
+                    if manual_name.upper() not in name.upper():
+                        output_file.write("# DIFFERENCE: %s (for %s)\n\n" %
+                            (manual_names[key], reader))
+                except KeyError:
+                    pass
 
     output_file.write("\n")
 




More information about the Pcsclite-cvs-commit mailing list