create exception using modern python syntax
authorDiane Trout <diane@ghic.org>
Thu, 24 Jul 2014 21:03:07 +0000 (14:03 -0700)
committerDiane Trout <diane@ghic.org>
Thu, 24 Jul 2014 21:03:07 +0000 (14:03 -0700)
bcmagic/plugin.py

index 8b03080bc53313aa7e58da686a3310b9c33bc757..0ea85ad3ae15a9b1661c29ae306613b04d578ac4 100644 (file)
@@ -26,7 +26,7 @@ def register_search_plugin(label, search_function):
     
     if label in _SEARCH_FUNCTIONS:
         msg = "search function for label (%s) already registered." % (label)
-        raise ValueError, msg
-    
+        raise ValueError(msg)
+
     _SEARCH_FUNCTIONS[label] = search_function
     
\ No newline at end of file