Revision: 591
http://python-ogre.svn.sourceforge.net/python-ogre/?rev=591&view=rev
Author: Game_Ender
Date: 2008-05-21 21:50:44 -0700 (Wed, 21 May 2008)
Log Message:
-----------
Replaced catch "except:" with "except ImportError:", allows catching of typos and other errors when import PythonOgreConfig_*.py modules
Modified Paths:
--------------
trunk/python-ogre/environment.py
Modified: trunk/python-ogre/environment.py
===================================================================
--- trunk/python-ogre/environment.py 2008-05-20 09:42:51 UTC (rev 590)
+++ trunk/python-ogre/environment.py 2008-05-22 04:50:44 UTC (rev 591)
@@ -97,14 +97,14 @@
Config = __import__( s )
_ConfigSet = True
log ( "Loaded Config (based on username) from %s" % (s ))
-except:
+except ImportError:
try:
s= 'PythonOgreConfig_' + _SystemType ## + '.py'
Config = __import__( s )
_ConfigSet = True
log ( "Loaded Config (based on systemtype) from %s" % (s))
- except:
+ except ImportError:
pass
if not _ConfigSet:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|