[xiph-commits] r13866 - websites/validator.xspf.org

sping at svn.xiph.org sping at svn.xiph.org
Thu Sep 20 16:00:48 PDT 2007


Author: sping
Date: 2007-09-20 16:00:48 -0700 (Thu, 20 Sep 2007)
New Revision: 13866

Modified:
   websites/validator.xspf.org/hello_uri.py
Log:
Just better.


Modified: websites/validator.xspf.org/hello_uri.py
===================================================================
--- websites/validator.xspf.org/hello_uri.py	2007-09-20 22:22:28 UTC (rev 13865)
+++ websites/validator.xspf.org/hello_uri.py	2007-09-20 23:00:48 UTC (rev 13866)
@@ -1,3 +1,5 @@
+#! /usr/bin/python
+# -----------------------------------------------------------------------
 # Online XSPF Validator
 # Copyright (C) 2007, Sebastian Pipping / Xiph.Org Foundation
 #
@@ -16,13 +18,15 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
 # Sebastian Pipping, sping at xiph.org
+# -----------------------------------------------------------------------
 
+import sys
 try:
     from Ft.Lib import Uri
 except ImportError:
-    print "Package 'Ft.Lib' is missing.\n" \
-            "On Debian run 'sudo apt-get install python-4suite-xml'."
-    exit
+    print "ERROR: Package 'Ft.Lib' is missing. On Debian testing/unstable run:\n" \
+            "sudo apt-get install python-4suite-xml"
+    sys.exit(1)
 
 
 def checkUri(candidate):


Property changes on: websites/validator.xspf.org/hello_uri.py
___________________________________________________________________
Name: svn:executable
   + *



More information about the commits mailing list