We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f519842 commit 8e3b7abCopy full SHA for 8e3b7ab
tests/integration/test_mt5_connection.py
@@ -35,11 +35,12 @@
35
mt5.shutdown()
36
success = True
37
break
38
- except Exception:
+ except (ConnectionError, ValueError, TypeError) as e:
39
+ logger.info(f"Connection error: {e}")
40
try:
41
mt5.initialize()
42
- logger.info(f"Attempt {attempt+1}: Not ready yet, sleeping...")
43
+ logger.info(f"Attempt {attempt+1}: Not ready yet, sleeping... Error: {e}")
44
time.sleep(5)
45
46
if not success:
0 commit comments