Moved redis import into try/catch to throw import error.