[or-cvs] r17338: {updater} do not crash on exe_registry_ent (updater/trunk/lib/thandy)

nickm at seul.org nickm at seul.org
Thu Nov 20 21:27:01 UTC 2008


Author: nickm
Date: 2008-11-20 16:27:01 -0500 (Thu, 20 Nov 2008)
New Revision: 17338

Modified:
   updater/trunk/lib/thandy/formats.py
Log:
do not crash on exe_registry_ent

Modified: updater/trunk/lib/thandy/formats.py
===================================================================
--- updater/trunk/lib/thandy/formats.py	2008-11-20 14:36:16 UTC (rev 17337)
+++ updater/trunk/lib/thandy/formats.py	2008-11-20 21:27:01 UTC (rev 17338)
@@ -654,7 +654,7 @@
             raise thandy.FormatException("missing exe_args value")
         extra['exe_args'] = r['exe_args']
         if r.get('exe_registry_ent'):
-            if len(exe_registry_ent) != 2:
+            if len(r['exe_registry_ent']) != 2:
                 raise thandy.FormatException("Bad length on exe_registry_ent")
             regkey, regval = r['exe_registry_ent']
             checkWinRegistryKeyname(regkey)



More information about the tor-commits mailing list