mirror of
https://github.com/evilhero/mylar
synced 2024-12-25 17:16:51 +00:00
FIX: Possible fix for urllib3 exception errors
This commit is contained in:
parent
5c2a24f874
commit
538d9d8e24
1 changed files with 5 additions and 2 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue