Skip to content

Commit 8c413cf

Browse files
🐛 fix: Fixed bug where logs were not returned correctly
1 parent 47ed4b8 commit 8c413cf

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

squarecloud/client.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,6 @@ async def get_logs(self, app_id: str, **kwargs) -> LogsData:
200200
:return: A LogsData object, which is a named tuple
201201
"""
202202
response: Response | None = await self._http.fetch_logs(app_id)
203-
if response.code is None:
204-
return LogsData()
205203
payload: dict[str, Any] = response.response
206204
logs_data: LogsData = LogsData(**payload)
207205
if not kwargs.get('avoid_listener'):

0 commit comments

Comments
 (0)