Don't load Twitter notifier on Python 3
This commit is contained in:
1 parent
b668e39296
commit
46cff26d92
1 file changed
+11
-3
@@ -1,8 +1,16 @@
|
|||||||
from .main import Twitter
|
from six import PY3
|
||||||
|
|
||||||
|
try:
|
||||||
|
from .main import Twitter
|
||||||
|
|
||||||
def autoload():
|
def autoload():
|
||||||
return Twitter()
|
return Twitter()
|
||||||
|
except:
|
||||||
|
if PY3:
|
||||||
|
from couchpotato.core.helpers.py3 import NotSupported
|
||||||
|
raise NotSupported
|
||||||
|
else:
|
||||||
|
raise
|
||||||
|
|
||||||
config = [{
|
config = [{
|
||||||
'name': 'twitter',
|
'name': 'twitter',
|
||||||
|
|||||||
Reference in new issue
Block a user