dabo Commit
Revision 3652
Date: 2007-11-11 10:03:55 -0800 (Sun, 11 Nov 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/3652
Changed:
U trunk/dabo/lib/reportWriter.py
Log:
Changed the action taken when import fails to raising an ImportError with the
explanatory message, instead of unilaterally exiting the app. This way, any
reporting code can check if the requirements are installed, and handle the
exception in whatever manner is appropriate.
Diff:
Modified: trunk/dabo/lib/reportWriter.py
===================================================================
--- trunk/dabo/lib/reportWriter.py 2007-11-11 18:00:02 UTC (rev 3651)
+++ trunk/dabo/lib/reportWriter.py 2007-11-11 18:03:55 UTC (rev 3652)
@@ -40,7 +40,7 @@
""" % "\n\t".join(_failedLibs)
- sys.exit(msg)
+ raise ImportError, msg
del(_failedLibs)
#######################################################
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]