diff --git a/mylar/rsscheck.py b/mylar/rsscheck.py index 4358eba8..2559e963 100755 --- a/mylar/rsscheck.py +++ b/mylar/rsscheck.py @@ -3,8 +3,6 @@ import os, sys import re import lib.feedparser as feedparser -#import urllib2 -import lib.requests as requests import ftpsshup import datetime import gzip @@ -13,6 +11,11 @@ from StringIO import StringIO import mylar from mylar import db, logger, ftpsshup, helpers +try: + import requests +except ImportError: + import lib.requests as requests + def _start_newznab_attr(self, attrsD): context = self._getContext()