[Nym3-commit] r432 - trunk/nymbaron/Client
laurent at conuropsis.org
laurent at conuropsis.org
Wed Nov 30 11:47:39 CET 2005
Author: laurent
Date: 2005-11-30 11:47:39 +0100 (Wed, 30 Nov 2005)
New Revision: 432
Modified:
trunk/nymbaron/Client/Main.py
Log:
Catch reply messages for nonexistant accounts.
Modified: trunk/nymbaron/Client/Main.py
===================================================================
--- trunk/nymbaron/Client/Main.py 2005-11-28 17:44:39 UTC (rev 431)
+++ trunk/nymbaron/Client/Main.py 2005-11-30 10:47:39 UTC (rev 432)
@@ -1140,7 +1140,13 @@
pass
os.unlink(name)
tm = Account.TagMap(config.path + os.sep + 'tagmap')
- nick = tm.nickFromId(id)
+ try:
+ nick = tm.nickFromId(id)
+ except Account.NoSuchAccount:
+ ui.display("Can't find the account to which this message is" +
+ " addressed. Perhaps you deleted it ?")
+ os.unlink(nameo)
+ sys.exit(1)
decf = open(nameo, "r")
decmsg = decf.read()
decf.close()
More information about the Nym3-commit
mailing list