dont await that
This commit is contained in:
1 file changed
+1
-1
@@ -82,7 +82,7 @@ class ReforgerStats(commands.Bot):
|
|||||||
if self.ssh is None or self.sftp is None: self.sftp, self.ssh = createSSHClient(self.config)
|
if self.ssh is None or self.sftp is None: self.sftp, self.ssh = createSSHClient(self.config)
|
||||||
|
|
||||||
remote_path = "/profile/logs"
|
remote_path = "/profile/logs"
|
||||||
if self.log_dir == "": self.log_dir = await getLatestDir(self.sftp, remote_path)
|
if self.log_dir == "": self.log_dir = getLatestDir(self.sftp, remote_path)
|
||||||
|
|
||||||
# Read data
|
# Read data
|
||||||
file: SFTPFile = await self.sftp.open(f"{remote_path}/{self.log_dir}/console.log")
|
file: SFTPFile = await self.sftp.open(f"{remote_path}/{self.log_dir}/console.log")
|
||||||
|
|||||||
Reference in new issue
Block a user