From d06db439d943da0d1b4800c212bc89b1a37a6875 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Wed, 22 May 2024 12:46:06 +0000 Subject: [PATCH] try except for blockchain and juggernau added for conversion --- .../conversion/translation/external_conversion.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/kitchen_counter/conversion/translation/external_conversion.py b/kitchen_counter/conversion/translation/external_conversion.py index 5b8e9dc..430f1fc 100644 --- a/kitchen_counter/conversion/translation/external_conversion.py +++ b/kitchen_counter/conversion/translation/external_conversion.py @@ -471,6 +471,8 @@ class Conversion: # script_original.languages_juggernaut = str(script_translated.dial_dest_language) self.original_script_object.save() except Exception as e: + self.translated_script_object.error_desc = str(e) + self.translated_script_object.save() print("Error in juggernaut updation is",e) """Juggernaut Payment Updation Done""" @@ -506,7 +508,9 @@ class Conversion: print(response) except Exception as e: - print("Error is", e) + self.translated_script_object.error_desc = "Error in s3 output upload is " + str(e) + self.translated_script_object.save() + print("Error in s3 output upload is", e) @@ -639,6 +643,8 @@ class Conversion: } sendmail(to_email=to_email, email_code=email_code,key_value=key_value, filePath=certificatepath) except Exception as e: + self.translated_script_object.error_desc = "Error in blockchain is " + str(e) + self.translated_script_object.save() print("Error in blockchain is", e) """Blockchain Upload Ends here"""