[SCM] calf/master: + Big Bull: tolerate undefined prefixes

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:39:15 UTC 2013


The following commit has been merged in the master branch:
commit 4d864786dadaa4fb319025308b2524da6b8cf89c
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Fri Jan 30 23:07:37 2009 +0000

    + Big Bull: tolerate undefined prefixes

diff --git a/bigbull/lv2.py b/bigbull/lv2.py
index 5bc3ffd..9b1ac9e 100644
--- a/bigbull/lv2.py
+++ b/bigbull/lv2.py
@@ -134,7 +134,10 @@ def parseTTL(uri, content, model, debug):
             elif prnot[0] == "_":
                 spo[item] = uri + "#" + prnot[1]
             else:
-                spo[item] = prefixes[prnot[0]] + prnot[1]
+                if prnot[0] not in prefixes:
+                    raise Exception, "Prefix %s not defined" % prnot[0]
+                else:
+                    spo[item] = prefixes[prnot[0]] + prnot[1]
             item += 1
         elif (x[0] == 'URI' or x[0] == "string" or x[0] == "number" or (x[0] == "symbol" and x[1] == "a" and item == 1)) and (item < 3):
             if x[0] == "URI" and x[1] == "":

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list