|
From: <sub...@co...> - 2008-04-13 00:55:21
|
Author: pjenvey
Date: 2008-04-12 18:55:25 -0600 (Sat, 12 Apr 2008)
New Revision: 3379
Modified:
FormEncode/trunk/formencode/formgen.py
Log:
don't blow up if pkg_resources can't find RuleDispatch
Modified: FormEncode/trunk/formencode/formgen.py
===================================================================
--- FormEncode/trunk/formencode/formgen.py 2008-04-13 00:53:32 UTC (rev 3378)
+++ FormEncode/trunk/formencode/formgen.py 2008-04-13 00:55:25 UTC (rev 3379)
@@ -15,7 +15,7 @@
import pkg_resources
pkg_resources.require('RuleDispatch')
import dispatch
-except ImportError:
+except (ImportError, pkg_resources.DistributionNotFound):
pass
if dispatch:
|