From 46cff26d924b62e76d8668096e9ad42393635d1c Mon Sep 17 00:00:00 2001 From: Ruud Date: Mon, 6 Oct 2014 16:47:04 +0200 Subject: [PATCH] Don't load Twitter notifier on Python 3 --- couchpotato/core/notifications/twitter/__init__.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/couchpotato/core/notifications/twitter/__init__.py b/couchpotato/core/notifications/twitter/__init__.py index b6b42bb..306ed27 100644 --- a/couchpotato/core/notifications/twitter/__init__.py +++ b/couchpotato/core/notifications/twitter/__init__.py @@ -1,8 +1,16 @@ -from .main import Twitter +from six import PY3 +try: + from .main import Twitter -def autoload(): - return Twitter() + def autoload(): + return Twitter() +except: + if PY3: + from couchpotato.core.helpers.py3 import NotSupported + raise NotSupported + else: + raise config = [{ 'name': 'twitter',