From 523b74b56a305d591b080ed8b48066c3279db2d8 Mon Sep 17 00:00:00 2001 From: Alestan Date: Tue, 7 Sep 2010 01:32:00 +0000 Subject: [PATCH] changed syntax to support python 2.5.x git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13754 282e977c-c81d-0410-88c4-b93c2d0d6712 --- python/guilds/guildoracle.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python/guilds/guildoracle.py b/python/guilds/guildoracle.py index 681eaee07..051cec9fd 100644 --- a/python/guilds/guildoracle.py +++ b/python/guilds/guildoracle.py @@ -128,9 +128,7 @@ if (Access ==1) or (isDM == 1): if guild.info(text[1]): message = '%s is already a member.' %text[1] else: - try: - guild.add_member(text[1], 'Initiate' if len(text)==2 else text[2]) - except: + #changed to support python 2.5 guild.add_member(text[1], 'Initiate' if len(text)==2 else text[2]) guild.add_member(text[1], 'Initiate' ) message = 'Added %s to the guild' %text[1] else: