File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 2222SOFTWARE.
2323'''
2424
25- __version__ = '1.3.3 '
25+ __version__ = '1.3.4 '
2626
2727import discord
2828from discord .ext import commands
@@ -62,11 +62,15 @@ async def update_repository(self):
6262 }
6363 merge_url = self .merge_url .format (username = self .username )
6464
65- await self .request (merge_url , method = 'POST' , payload = payload )
65+ r = await self .request (merge_url , method = 'POST' , payload = payload )
66+ print (r )
6667
6768 async def request (self , url , method = 'GET' , payload = None ):
6869 async with self .session .request (method , url , headers = self .headers , json = payload ) as resp :
69- return await resp .json ()
70+ try :
71+ return await resp .json ()
72+ except :
73+ return await resp .text ()
7074
7175 @classmethod
7276 async def login (cls , bot , access_token ):
You can’t perform that action at this time.
0 commit comments