diff options
Diffstat (limited to 'python/astra')
| -rw-r--r-- | python/astra/plugin.py | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/python/astra/plugin.py b/python/astra/plugin.py index bbbc450..be5c155 100644 --- a/python/astra/plugin.py +++ b/python/astra/plugin.py @@ -33,7 +33,10 @@ class base(object):      def astra_init(self, cfg):          try:              args, varargs, varkw, defaults = inspect.getargspec(self.initialize) -            nopt = len(defaults) +            if not defaults is None: +                nopt = len(defaults) +            else: +                nopt = 0              if nopt>0:                  req = args[2:-nopt]                  opt = args[-nopt:] | 
