Skip to content

Commit

Permalink
Merge branch 'develop': Fix FSM default state
Browse files Browse the repository at this point in the history
  • Loading branch information
mahenzon committed Jul 28, 2018
2 parents e888f52 + b4d09f9 commit ca34215
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aioalice/dispatcher/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from . import api
from .handler import Handler
from .storage import DisabledStorage, MemoryStorage
from .storage import DisabledStorage, MemoryStorage, DEFAULT_STATE
from .filters import generate_default_filters, ExceptionsFilter
from ..utils import json, exceptions

Expand Down Expand Up @@ -58,7 +58,7 @@ async def process_request(self, request):
raise

def register_request_handler(self, callback, *, commands=None, contains=None, starts_with=None, request_type=None,
func=None, state=None, regexp=None, custom_filters=None, **kwargs):
func=None, state=DEFAULT_STATE, regexp=None, custom_filters=None, **kwargs):
"""
Register handler for AliceRequest
Expand Down Expand Up @@ -93,7 +93,7 @@ async def handle_all_requests(alice_request):
self.requests_handlers.register(callback, prepared_filers)

def request_handler(self, *custom_filters, commands=None, contains=None, starts_with=None,
request_type=None, func=None, state=None, regexp=None, **kwargs):
request_type=None, func=None, state=DEFAULT_STATE, regexp=None, **kwargs):
"""
Decorator AliceRequest handler
Expand Down

0 comments on commit ca34215

Please sign in to comment.