optimuslib 0.0.40__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
- log.info(f'Discord Bot Message Send Failure Error Description: {responseJson['errors']['content']['_errors'][0]['code']} - {responseJson['errors']['content']['_errors'][0]['message']}')
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
- log.info(f'Discord Bot Message Send Failure Error Description: {responseJson['message']}')
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: optimuslib
3
- Version: 0.0.40
3
+ Version: 0.0.41
4
4
  Summary: Function Library for mostly used codes
5
5
  Author: Shomi Nanwani
6
6
  Requires-Python: >=3.9,<4.0
@@ -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.40.dist-info/METADATA,sha256=LpxoSjK2XHJWALiKeGySMYm-7FNcpN90YiVdVpRktT0,611
4
- optimuslib-0.0.40.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
5
- optimuslib-0.0.40.dist-info/RECORD,,