summaryrefslogtreecommitdiffstats
path: root/python/astra/plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/astra/plugin.py')
-rw-r--r--python/astra/plugin.py5
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:]