Revision: 2481
Author: janne.t.harkonen
Date: Thu Feb 18 22:13:17 2010
Log: Tell where to get BeautifulSoup if importing failed
http://code.google.com/p/robotframework/source/detail?r=2481

Modified:
 /trunk/tools/fixml/fixml.py

=======================================
--- /trunk/tools/fixml/fixml.py Thu Feb 18 04:04:54 2010
+++ /trunk/tools/fixml/fixml.py Thu Feb 18 22:13:17 2010
@@ -1,7 +1,11 @@
 #!/usr/bin/env python

 import sys
-from BeautifulSoup import BeautifulStoneSoup
+try:
+    from BeautifulSoup import BeautifulStoneSoup
+except ImportError:
+ raise ImportError('fixml.py requires BeautifulSoup (%s) to be installed.'
+                      % 'http://www.crummy.com/software/BeautifulSoup/')


 class Fixml(BeautifulStoneSoup):

Reply via email to