Permalink
Browse files

ValueError catch added.

ValueError occurs in case of self.function looks like 'anything'.
  • Loading branch information...
1 parent a41287f commit c71591231eb6c74bd31aad9f8d04a083b018b781 @alaif alaif committed May 10, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 djangomarkup/models.py
View
@@ -44,7 +44,7 @@ def get_function(self):
modname, funcname = self.function.rsplit('.', 1)
mod = import_module(modname)
self._function = getattr(mod, funcname)
- except (ImportError, AttributeError), err:
+ except (ImportError, AttributeError, ValueError), err:
raise ProcessorConfigurationError(err)
return self._function

0 comments on commit c715912

Please sign in to comment.