Skip to content

Commit

Permalink
Remove an unused exception dealing with explicit generator support.
Browse files Browse the repository at this point in the history
When eliot switched to context vars in #397, this exception became unused.
Since it was never public, there is no reason to keep it around.
  • Loading branch information
tomprince committed Jul 14, 2021
1 parent 8609d38 commit d7e7071
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions eliot/_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ def in_generator(self, generator):
self._current_generator = previous_generator


class GeneratorSupportNotEnabled(Exception):
"""
An attempt was made to use a decorated generator without first turning on
the generator context manager.
"""


def eliot_friendly_generator_function(original):
"""
Decorate a generator function so that the Eliot action context is
Expand Down

0 comments on commit d7e7071

Please sign in to comment.