From 520ad6a456cbd94e176bb54373669baf5e8cfbd9 Mon Sep 17 00:00:00 2001 From: Dave Shawley Date: Tue, 21 Jun 2016 10:30:52 -0400 Subject: [PATCH] Fix retrieving __version__ without Tornado installed. --- sprockets/mixins/correlation/__init__.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sprockets/mixins/correlation/__init__.py b/sprockets/mixins/correlation/__init__.py index f081b75..0dfe0ff 100644 --- a/sprockets/mixins/correlation/__init__.py +++ b/sprockets/mixins/correlation/__init__.py @@ -1,4 +1,11 @@ -from .mixins import HandlerMixin +try: + from .mixins import HandlerMixin + +except ImportError as error: + + class HandlerMixin(object): + def __init__(self, *args, **kwargs): + raise error version_info = (1, 0, 2)