Browse Source

Remove breakpoints (oops)

pull/10109/head
dolfies 3 years ago
parent
commit
23fe1092c3
  1. 5
      discord/http.py

5
discord/http.py

@ -266,7 +266,6 @@ class HTTPClient:
bucket = route.bucket bucket = route.bucket
method = route.method method = route.method
url = route.url url = route.url
breakpoint()
lock = self._locks.get(bucket) lock = self._locks.get(bucket)
if lock is None: if lock is None:
@ -583,7 +582,7 @@ class HTTPClient:
if file.description is not None: if file.description is not None:
attachment['description'] = file.description attachment['description'] = file.description
attachments.append(attachment) attachments.append(attachment)
lol = ( form.append(
{ {
'name': f'files[{index}]', 'name': f'files[{index}]',
'value': file.fp, 'value': file.fp,
@ -591,8 +590,6 @@ class HTTPClient:
'content_type': 'application/octet-stream', 'content_type': 'application/octet-stream',
} }
) )
form.append(lol)
breakpoint()
payload['attachments'] = attachments payload['attachments'] = attachments
form.append({'name': 'payload_json', 'value': utils._to_json(payload)}) form.append({'name': 'payload_json', 'value': utils._to_json(payload)})

Loading…
Cancel
Save