scurrypy 0.4.1__py3-none-any.whl → 0.4.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of scurrypy might be problematic. Click here for more details.
- discord/dispatch/prefix_dispatcher.py +1 -5
- discord/http.py +4 -0
- {scurrypy-0.4.1.dist-info → scurrypy-0.4.2.dist-info}/METADATA +1 -1
- {scurrypy-0.4.1.dist-info → scurrypy-0.4.2.dist-info}/RECORD +7 -7
- {scurrypy-0.4.1.dist-info → scurrypy-0.4.2.dist-info}/WHEEL +0 -0
- {scurrypy-0.4.1.dist-info → scurrypy-0.4.2.dist-info}/licenses/LICENSE +0 -0
- {scurrypy-0.4.1.dist-info → scurrypy-0.4.2.dist-info}/top_level.txt +0 -0
|
@@ -57,8 +57,4 @@ class PrefixDispatcher:
|
|
|
57
57
|
self._logger.log_info(f"Prefix Event '{command}' Acknowledged.")
|
|
58
58
|
except Exception as e:
|
|
59
59
|
self._logger.log_error(f"Error in prefix command '{command}': {e}")
|
|
60
|
-
|
|
61
|
-
if self._logger.dev_mode:
|
|
62
|
-
import traceback
|
|
63
|
-
traceback.print_exc()
|
|
64
|
-
print("-----------------------------------\n")
|
|
60
|
+
self._logger.log_traceback()
|
discord/http.py
CHANGED
|
@@ -6,6 +6,7 @@ import json
|
|
|
6
6
|
from typing import Any, Optional
|
|
7
7
|
|
|
8
8
|
from .logger import Logger
|
|
9
|
+
from .error import DiscordError
|
|
9
10
|
|
|
10
11
|
class HTTPException(Exception):
|
|
11
12
|
"""Represents an HTTP error response from Discord."""
|
|
@@ -163,6 +164,9 @@ class HTTPClient:
|
|
|
163
164
|
return await resp.json()
|
|
164
165
|
except aiohttp.ContentTypeError:
|
|
165
166
|
return await resp.text()
|
|
167
|
+
|
|
168
|
+
if resp.status == 400:
|
|
169
|
+
raise DiscordError(resp.status, await resp.json())
|
|
166
170
|
|
|
167
171
|
text = await resp.text()
|
|
168
172
|
raise HTTPException(resp, text)
|
|
@@ -4,14 +4,14 @@ discord/client_like.py,sha256=JyJq0XBq0vKuPBJ_ZnYf5yAAuX1zz_2B1TZBQE-BYbQ,473
|
|
|
4
4
|
discord/config.py,sha256=OH1A2mNKhDlGvQYASEsVUx2pNxP1YQ2a7a7z-IM5xFg,200
|
|
5
5
|
discord/error.py,sha256=AlislRTna554cM6KC0KrwKugzYDYtx_9C8_3QFe4XDc,2070
|
|
6
6
|
discord/gateway.py,sha256=L0SE7N29rg02JtNv670JMbw8LMLvtEsLF4LPM33OlHM,5110
|
|
7
|
-
discord/http.py,sha256=
|
|
7
|
+
discord/http.py,sha256=baazuV0EepetcCvbt-ldse27FgS33eAWbre9i0rBzZ4,7930
|
|
8
8
|
discord/intents.py,sha256=Lf2fogFFDqilZeKJv7tcUgKmMW3D7ykK4bBNi-zDzYA,2866
|
|
9
9
|
discord/logger.py,sha256=7lks8VyU538nUr_OfiUXRFOtXlpOLZSLvLoDRxJ8loY,4929
|
|
10
10
|
discord/model.py,sha256=CmuxyoWLWokE_UvCQ9M7U9Cr7JH9R7ULMv9KMwzXjDQ,3105
|
|
11
11
|
discord/dispatch/__init__.py,sha256=m7ixrbNhOV9QRORXPw6LSwxofQMAvLmPFBweBZu9ACc,20
|
|
12
12
|
discord/dispatch/command_dispatcher.py,sha256=4yyw-PspQrKWG40oSWOSz_SmmqG2D2HTpRmaVi19H2Q,5954
|
|
13
13
|
discord/dispatch/event_dispatcher.py,sha256=0hX4oSQloxColXNxPT2iWnqi4S9VKTxyD9_MSPsVYUM,3769
|
|
14
|
-
discord/dispatch/prefix_dispatcher.py,sha256=
|
|
14
|
+
discord/dispatch/prefix_dispatcher.py,sha256=HXgL5XqrQK08iJ4G_SgsLuC-s0YoH3FlqPY_bR6JLlQ,2115
|
|
15
15
|
discord/events/__init__.py,sha256=xE8YtJ7NKZkm7MLnohDQIbezh3ColmLR-3BMiZabt3k,18
|
|
16
16
|
discord/events/channel_events.py,sha256=t9UL4JjDqulAP_XepQ8MRMW54pNRqCbIK3M8tauzf9I,1556
|
|
17
17
|
discord/events/guild_events.py,sha256=Ok9tW3tjcwtbiqJgbe-42d9-R3-2RzqmIgBHEP-2Pcc,896
|
|
@@ -47,8 +47,8 @@ discord/resources/guild.py,sha256=jVlkdeMfB97q9qbgOn1g3Wtt0BcL9Ktj4hbbATnnbus,82
|
|
|
47
47
|
discord/resources/interaction.py,sha256=sUg5HOZLZvb_LWwHwyfPlcgMMuIXrNpvjVwR2efwVDk,5937
|
|
48
48
|
discord/resources/message.py,sha256=Oo3-EbJMt0UHK77x3CndjYwRrWbp5Vf5UHSIJqXzNHE,7542
|
|
49
49
|
discord/resources/user.py,sha256=vk89TnCVi-6ZgbDs_TZTCXrx_NfFS5Q9Wi_itYoaoyg,3085
|
|
50
|
-
scurrypy-0.4.
|
|
51
|
-
scurrypy-0.4.
|
|
52
|
-
scurrypy-0.4.
|
|
53
|
-
scurrypy-0.4.
|
|
54
|
-
scurrypy-0.4.
|
|
50
|
+
scurrypy-0.4.2.dist-info/licenses/LICENSE,sha256=qIlBETYpSEU8glbiwiJbuDxVl-2WIuf1PDqJemMjKkc,792
|
|
51
|
+
scurrypy-0.4.2.dist-info/METADATA,sha256=pRS8E9-8LJqorJuro5-RGnpeamSORAVjL6q45BfwTfI,4797
|
|
52
|
+
scurrypy-0.4.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
53
|
+
scurrypy-0.4.2.dist-info/top_level.txt,sha256=fJkrNbR-_8ubMBUcDEJBcfkpECrvSEmMrNKgvLlQFoM,8
|
|
54
|
+
scurrypy-0.4.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|