Skip to content
This repository was archived by the owner on Apr 12, 2018. It is now read-only.

Commit 05eb42c

Browse files
committed
Fix actors.deciders: import missing exceptions
1 parent 3b4cb98 commit 05eb42c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

swf/actors/decider.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
#! -*- coding: utf-8 -*-
22

3+
import boto.exception
4+
35
from swf.models.history import History
46
from swf.actors.core import Actor
5-
from swf.exceptions import PollTimeout
7+
from swf.exceptions import PollTimeout, ResponseError, DoesNotExistError
68

79

810
class Decider(Actor):
@@ -41,7 +43,7 @@ def complete(self, task_token,
4143
decisions,
4244
execution_context,
4345
)
44-
except SWFResponseError as e:
46+
except boto.exception.SWFResponseError as e:
4547
if e.error_code == 'UnknownResourceFault':
4648
raise DoesNotExistError(
4749
"Unable to complete decision task with token: {}.\n".format(task_token),
@@ -50,7 +52,6 @@ def complete(self, task_token,
5052

5153
raise ResponseError(e.body['message'])
5254

53-
5455
def poll(self, task_list=None,
5556
identity=None,
5657
**kwargs):
@@ -94,7 +95,7 @@ def poll(self, task_list=None,
9495
next_page_token=next_page,
9596
**kwargs
9697
)
97-
except SWFResponseError as e:
98+
except boto.exception.SWFResponseError as e:
9899
if e.error_code == 'UnknownResourceFault':
99100
raise DoesNotExistError(
100101
"Unable to poll decision task.\n",

0 commit comments

Comments
 (0)