summaryrefslogtreecommitdiff
path: root/lib/thandy/formats.py
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-11-20 21:27:01 +0000
committerNick Mathewson <nickm@torproject.org>2008-11-20 21:27:01 +0000
commitd5e5a118facc833ed4b1984b0a5721e1509c576a (patch)
tree8ba445c3ce52ff31d610dc8c9997a31138354a10 /lib/thandy/formats.py
parent159b8af79ecbfdd10c885ae9b70bbb71f097c029 (diff)
do not crash on exe_registry_ent
git-svn-id: file:///home/or/svnrepo/updater/trunk@17338 55e972cd-5a19-0410-ae62-a4d7a52db4cd
Diffstat (limited to 'lib/thandy/formats.py')
-rw-r--r--lib/thandy/formats.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/thandy/formats.py b/lib/thandy/formats.py
index c0876df..8a27a65 100644
--- a/lib/thandy/formats.py
+++ b/lib/thandy/formats.py
@@ -654,7 +654,7 @@ def makePackageObj(config_fname, package_fname):
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)