optimuslib 0.0.39__py3-none-any.whl → 0.0.41__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.
optimuslib/optimuslib.py
CHANGED
|
@@ -1354,9 +1354,12 @@ def sendDiscordBotNotificationMain(botToken,channelId,message, parse_mode=''):
|
|
|
1354
1354
|
else:
|
|
1355
1355
|
responseJson = response.result().json()
|
|
1356
1356
|
try:
|
|
1357
|
-
|
|
1357
|
+
errorCode = responseJson['errors']['content']['_errors'][0]['code']
|
|
1358
|
+
errorMessage = responseJson['errors']['content']['_errors'][0]['message']
|
|
1359
|
+
log.info(f'Discord Bot Message Send Failure Error Description: {errorCode} - {errorMessage}')
|
|
1358
1360
|
except:
|
|
1359
|
-
|
|
1361
|
+
errorMessage = responseJson['message']
|
|
1362
|
+
log.info(f'Discord Bot Message Send Failure Error Description: {errorMessage}')
|
|
1360
1363
|
getVarInfo('responseJson',responseJson)
|
|
1361
1364
|
return False
|
|
1362
1365
|
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
optimuslib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
optimuslib/optimuslib.py,sha256=u5dFD9hf9eV2F6upnQpwYNj-Yy5LWUI7kniFaFV0HR8,55328
|
|
3
|
+
optimuslib-0.0.41.dist-info/METADATA,sha256=u9n5YuGmqFIBJlfdMw2ZvMWViW8WBwdV48qSOxBykI8,611
|
|
4
|
+
optimuslib-0.0.41.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
5
|
+
optimuslib-0.0.41.dist-info/RECORD,,
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
optimuslib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
optimuslib/optimuslib.py,sha256=LfDWhxtOT8pyP1PlB62Drkp3Of0maBCOVlEVUr_r_yw,55211
|
|
3
|
-
optimuslib-0.0.39.dist-info/METADATA,sha256=IwPhbKGK-wwxbKD_23BqyDzj-yVjPk-iKaBRPPSLiGY,611
|
|
4
|
-
optimuslib-0.0.39.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
5
|
-
optimuslib-0.0.39.dist-info/RECORD,,
|
|
File without changes
|