changed syntax to support python 2.5.x

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13753 282e977c-c81d-0410-88c4-b93c2d0d6712
master
Alestan 2010-09-07 01:29:07 +00:00
parent 2b352a8e93
commit e247b243c4
1 changed files with 4 additions and 1 deletions

View File

@ -128,7 +128,10 @@ if (Access ==1) or (isDM == 1):
if guild.info(text[1]):
message = '%s is already a member.' %text[1]
else:
guild.add_member(text[1], 'Initiate' if len(text)==2 else text[2])
try:
guild.add_member(text[1], 'Initiate' if len(text)==2 else text[2])
except:
guild.add_member(text[1], 'Initiate' )
message = 'Added %s to the guild' %text[1]
else:
message = 'Sorry, I don\'t know any %s' %text[1]