mirror of
https://github.com/Ichinga-Samuel/aiomql.git
synced 2026-07-27 20:27:43 +00:00
v4.0.4
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "aiomql"
|
||||
version = "4.0.3"
|
||||
version = "4.0.4"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.11"
|
||||
classifiers = [
|
||||
|
||||
@@ -37,8 +37,9 @@ class Account(_Base, AccountInfo):
|
||||
"""
|
||||
await self.mt5.initialize()
|
||||
self.connected = await self.mt5.login()
|
||||
if not self:
|
||||
if not self.connected:
|
||||
raise LoginError("Login failed")
|
||||
await self.refresh()
|
||||
return self
|
||||
|
||||
async def __aexit__(self, exc_type, exc_val, exc_tb):
|
||||
|
||||
Reference in New Issue
Block a user