createbatch image tool + send to telefram enrichment

This commit is contained in:
David Brazda
2024-02-11 12:37:19 +07:00
parent 9aa8b58877
commit 6795338eba
6 changed files with 58 additions and 15 deletions
+2 -2
View File
@@ -90,8 +90,8 @@ class Trade_Offline_Streamer(Thread):
time.sleep(backoff_factor * (2 ** attempt))
print("All attempts to fetch data failed.")
send_to_telegram(f"Failed to fetch stock trades after {max_retries} retries. Last exception: {last_exception}")
raise ConnectionError(f"Failed to fetch stock trades after {max_retries} retries. Last exception: {last_exception}")
send_to_telegram(f"Failed to fetch stock trades after {max_retries} retries. Last exception: {str(last_exception)} and {format_exc()}")
raise ConnectionError(f"Failed to fetch stock trades after {max_retries} retries. Last exception: {str(last_exception)} and {format_exc()}")
# Override the run() function of Thread class
#odebrano async