🐛 ignore ssl check while fetching feed

This commit is contained in:
Bhupesh-V 2023-08-22 22:50:08 +05:30
parent 48e2a025d0
commit 13498be553

View File

@ -14,6 +14,10 @@ SECONDS_IN_WEEK = 60 * 60 * 24 * 7
# Date Month, Year # Date Month, Year
STRFTIME_FORMAT = "%d %B, %Y" STRFTIME_FORMAT = "%d %B, %Y"
import ssl
if hasattr(ssl, '_create_unverified_context'):
ssl._create_default_https_context = ssl._create_unverified_context
class Config: class Config:
DB_PATH = "db.json" DB_PATH = "db.json"
SUBREDDIT = "developersindia" SUBREDDIT = "developersindia"