Browse Source

Don't load Twitter notifier on Python 3

old/py3
Ruud 11 years ago
parent
commit
46cff26d92
  1. 14
      couchpotato/core/notifications/twitter/__init__.py

14
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',

Loading…
Cancel
Save