Forwarded: http://sourceforge.net/support/tracker.php?aid=3014815
Tags: patch pending upstream

I wrote and attached a patch to fix this issue.

Description: Removes strin exceptions for Python2.6 compatibility
Origin: other, http://bugs.debian.org/585248
Bug: http://sourceforge.net/support/tracker.php?aid=3014815
Bug-Debian: http://bugs.debian.org/585248
Patch: -
Author: Per W. <debian DOT perfide AT safersignup DOT com>
Last-Update: 2010-06-11

--- a/lib/luma/base/backend/ObjectClassAttributeInfo.py
+++ b/lib/luma/base/backend/ObjectClassAttributeInfo.py
@@ -219,7 +219,7 @@
         """
         
         if classList == None:
-            raise "Missing Arguments to Funktion 'isMust(attribute, objectClassesDict)"
+            raise ValueError("Missing Arguments to Funktion 'isMust(attribute, objectClassesDict)")
 
         attribute = attribute.lower()
         
--- a/install.py
+++ b/install.py
@@ -119,7 +119,7 @@
             while a.poll() == -1:
                 pass
             if a.poll() > 0:
-                raise "CopyError", "Error!!! Could not copy File. Maybe wrong permissions?"
+                raise OSError("CopyError: Could not copy File. Maybe wrong permissions?")
 
             if tmpDir == "bin":
                 src,dst = prefixDir + '/lib/luma/luma.py', prefixDir + '/bin/luma'
@@ -132,7 +132,7 @@
                             # Not to wory - seems we're trying to install a newer version
                             pass
                         elif oerr.errno == errno.EACCES:
-                            raise "AccessError","Unable to make symbolic link due to access restrictions."
+                            raise OSError("AccessError: Unable to make symbolic link due to access restrictions."
                 
         print "Finished copying program files.\n"
         print "LUMA installed succesfully! :)"

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to