Skip to content

Commit 4548a65

Browse files
authored
Merge pull request #27 from IoTLabs-pl/Patch-empty-history-printer-on-master-branch
Patch empty history printing
2 parents 348f5fb + d0a5112 commit 4548a65

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyhon/apis/wrappers/_base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ async def __aexit__(self, *args: Any) -> None:
103103
await self._resources.aclose()
104104

105105
def _log_history(self, text: str, flush: bool = True) -> None:
106+
if not self._history:
107+
return
108+
106109
lines = (
107110
["hOn Authentication Error"]
108111
+ [f" {i: 2d} {resp}" for i, resp in enumerate(self._history, 1)]

0 commit comments

Comments
 (0)