Skip to content

Commit

Permalink
Merge pull request #12 from Globegitter/patch-2
Browse files Browse the repository at this point in the history
Catch ImportError for iterate_promise
  • Loading branch information
syrusakbary committed Oct 11, 2016
2 parents 4ef0a69 + e0be014 commit 305a535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion promise/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ def iscoroutine(obj):

try:
from .iterate_promise import iterate_promise
except SyntaxError:
except (SyntaxError, ImportError):
def iterate_promise(promise):
raise Exception('You need "yield from" syntax for iterate in a Promise.')

0 comments on commit 305a535

Please sign in to comment.