Fix exception syntax for Python 2.5.2.

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13363 282e977c-c81d-0410-88c4-b93c2d0d6712
master
ryo_saeba 2010-06-06 08:32:03 +00:00
parent adf555924a
commit ec18147f56
1 changed files with 2 additions and 2 deletions

View File

@ -301,8 +301,8 @@ class Dialog:
if os.path.isfile(path):
try:
exec(open(path).read())
except Exception as error:
Crossfire.Log(Crossfire.LogError, "CFDialog: Failed to set post-condition %s:%s." %(condition, error))
except:
Crossfire.Log(Crossfire.LogError, "CFDialog: Failed to set post-condition %s." %condition)
else:
Crossfire.Log(Crossfire.LogError, "CFDialog: Post Block called with unknown action %s." % action)