diff options
| author | Daniel M. Pelt <D.M.Pelt@cwi.nl> | 2015-06-24 21:36:04 +0200 | 
|---|---|---|
| committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2015-07-23 11:57:16 +0200 | 
| commit | edae78481cf0e9cbffe335de1e541821758c5da1 (patch) | |
| tree | 72e9d7280e6cf9f9a66c0c20f71fd079bd4ebad6 /python/astra | |
| parent | 385865d6ad7a54ee294b4086d4679747f49cff2e (diff) | |
| download | astra-edae78481cf0e9cbffe335de1e541821758c5da1.tar.gz astra-edae78481cf0e9cbffe335de1e541821758c5da1.tar.bz2 astra-edae78481cf0e9cbffe335de1e541821758c5da1.tar.xz astra-edae78481cf0e9cbffe335de1e541821758c5da1.zip | |
Log error when running Python plugin algorithm
Diffstat (limited to 'python/astra')
| -rw-r--r-- | python/astra/plugin.py | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/python/astra/plugin.py b/python/astra/plugin.py index 891f6c9..bbbc450 100644 --- a/python/astra/plugin.py +++ b/python/astra/plugin.py @@ -65,6 +65,13 @@ class base(object):              log.error(str(e))              raise +    def astra_run(self, its): +        try: +            self.run(its) +        except Exception as e: +            log.error(str(e)) +            raise +  def register(name, className):      """Register plugin with ASTRA. | 
