Skip to content

Commit

Permalink
Minor fix (SilentDemonSD#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
khainee authored Jun 22, 2023
1 parent b9139c6 commit c86ba15
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bot/helper/ext_utils/bot_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,12 @@ def arg_parser(items, arg_base):


async def get_content_type(url):
async with aioClientSession(trust_env=True) as session:
async with session.get(url) as response:
return response.headers.get('Content-Type')
try:
async with aioClientSession(trust_env=True) as session:
async with session.get(url, verify_ssl=False) as response:
return response.headers.get('Content-Type')
except:
return None


def update_user_ldata(id_, key=None, value=None):
Expand Down

0 comments on commit c86ba15

Please sign in to comment.