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-b93c2d0d6712master
parent
adf555924a
commit
ec18147f56
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue