File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -239,11 +239,14 @@ async def manual_post(
239
239
if hasattr (self , 'on_custom_post' ):
240
240
keys .append ('custom' )
241
241
for key in keys :
242
- responses .append (await self .manual_post (
243
- server_count = server_count ,
244
- service = key , user_count = user_count ,
245
- voice_connections = voice_connections
246
- ))
242
+ try :
243
+ responses .append (await self .manual_post (
244
+ server_count = server_count ,
245
+ service = key , user_count = user_count ,
246
+ voice_connections = voice_connections
247
+ ))
248
+ except Exception as error :
249
+ responses .append (error )
247
250
return responses
248
251
_service = Service .get (service )
249
252
key = self .get_key (service )
@@ -325,4 +328,4 @@ def shard_id(self) -> int or None:
325
328
326
329
@property
327
330
def shard_count (self ) -> int or None :
328
- return self ._shard_count or self .filler .shard_count if self ._sharding else None
331
+ return self ._shard_count or self .filler .shard_count if self ._sharding else None
You can’t perform that action at this time.
0 commit comments