Skip to content

Commit 10ed2e7

Browse files
author
Jan Mikula
committed
disable SSL validation in feeds
1 parent f67be83 commit 10ed2e7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

server/sources/management/commands/importrss.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import lxml.html
66
import lxml.etree
77
import requests
8+
import ssl
89
from datetime import timedelta
910

1011
import dateutil.parser
@@ -21,6 +22,7 @@
2122
import warnings
2223
warnings.filterwarnings("ignore")
2324

25+
ssl._create_default_https_context = ssl._create_unverified_context
2426

2527
# additional timezones which are not recognized byt dateutil.parser by default
2628
TZ_INFOS = {

0 commit comments

Comments
 (0)