Don't load xmpp on Python 3

This commit is contained in:
Ruud committed 2014-10-06 16:46:22 +02:00
1 parent 97ee16eb4e
commit b668e39296
1 file changed
+10 -2
+10 -2
View File
@@ -3,12 +3,20 @@ import traceback
from couchpotato.core.logger import CPLog from couchpotato.core.logger import CPLog
from couchpotato.core.notifications.base import Notification from couchpotato.core.notifications.base import Notification
import xmpp from six import PY3
log = CPLog(__name__) log = CPLog(__name__)
autoload = 'Xmpp' try:
import xmpp
autoload = 'Xmpp'
except:
if PY3:
from couchpotato.core.helpers.py3 import NotSupported
raise NotSupported
else:
raise
class Xmpp(Notification): class Xmpp(Notification):