diff --git a/platypush/config/__init__.py b/platypush/config/__init__.py index 4759fbb4a..82505c069 100644 --- a/platypush/config/__init__.py +++ b/platypush/config/__init__.py @@ -162,8 +162,8 @@ class Config(object): self.cronjobs[cron_name] = self._config[key] elif key.startswith('procedure.'): tokens = key.split('.') - _async = True if tokens[1] == 'async' else False - procedure_name = '.'.join(tokens[2:]) + _async = True if len(tokens) > 2 and tokens[1] == 'async' else False + procedure_name = '.'.join(tokens[2:] if len(tokens) > 2 else tokens[1:]) self.procedures[procedure_name] = { '_async': _async, 'actions': self._config[key]