[Nym3-commit] r281 - trunk/nym3/Client
jr at conuropsis.org
jr at conuropsis.org
Mon Jun 6 00:17:41 CEST 2005
Author: jr
Date: 2005-06-06 00:17:40 +0200 (Mon, 06 Jun 2005)
New Revision: 281
Modified:
trunk/nym3/Client/Main.py
Log:
Typo + use decode_message_references new signature
Modified: trunk/nym3/Client/Main.py
===================================================================
--- trunk/nym3/Client/Main.py 2005-06-05 22:12:07 UTC (rev 280)
+++ trunk/nym3/Client/Main.py 2005-06-05 22:17:40 UTC (rev 281)
@@ -174,7 +174,7 @@
"""Generate a list of mids from a list of message references, refs,
a list of keys and a hashtable.
Return the list of mid if all the mids can be decoded.
- Throw an DecodeException with as argument a string describing the cause of
+ Throw a DecodeException with as argument a string describing the cause of
error.
A reference is either a mid or a string of the format <key>:<val>,
@@ -398,8 +398,12 @@
if is_hex_mid(older):
older = binascii.unhexlify(older)
else:
- idx = build_index(ui, config, account)
- l = decode_message_references(ui, [older], ['syn'], {'syn': idx})
+ try:
+ l = decode_message_references([older], ['syn'],
+ {'syn': (build_index, (ui, config, account))})
+ except DecodeException, inst:
+ ui.display(str(inst))
+ sys.exit(1)
if len(l) == 1:
older = l[0]
else:
More information about the Nym3-commit
mailing list