Skip to content

Commit

Permalink
'Fix' for unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Oct 1, 2015
1 parent c6794e6 commit 72330cc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/galaxy/web/framework/middleware/statsd.py
Expand Up @@ -3,7 +3,13 @@
"""
from __future__ import absolute_import
import time
import statsd

try:
import statsd
except ImportError:
# This middleware will never be used without statsd. This block allows
# unit tests pass on systems without it.
statsd = None


class StatsdMiddleware(object):
Expand Down

0 comments on commit 72330cc

Please sign in to comment.