Skip to content

Commit

Permalink
TypeError: Session.request() got an unexpected keyword argument 'ssl'
Browse files Browse the repository at this point in the history
  • Loading branch information
buddhhu authored Aug 14, 2023
1 parent 6ac7823 commit 9bf0bf1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/paste.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import os
import ssl
#import ssl

import certifi
#import certifi

from . import LOGS, asst, fetch, ultroid_cmd


async def get_paste(data: str, extension: str = "txt"):
ssl_context = ssl.create_default_context(cafile=certifi.where())
#ssl_context = ssl.create_default_context(cafile=certifi.where())
json = {"content": data, "extension": extension}
key = await fetch(
url="https://spaceb.in/api/v1/documents/",
json=json,
ssl=ssl_context,
#ssl=ssl_context,
method="POST",
re_json=True,
)
Expand Down

0 comments on commit 9bf0bf1

Please sign in to comment.