From 123eac23f190c05da4f3c926cb10b326a04ed8ae Mon Sep 17 00:00:00 2001 From: ryanking13 Date: Mon, 20 Jan 2025 21:07:57 +0900 Subject: [PATCH] fix typo in the message --- CHANGELOG.md | 4 ++-- SRT/srt.py | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e800bd1..1f2149a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,8 @@ ## Unreleased -## v2.6.5 (2025/01/20) +## v2.6.6 (2025/01/20) -- 오류 로그 출력 추간 +- 오류 로그 출력 추가 ([#292](https://github.com/ryanking13/SRT/pull/292)) ## v2.6.4 (2025/01/05) diff --git a/SRT/srt.py b/SRT/srt.py index 379354e..bcdc9bb 100644 --- a/SRT/srt.py +++ b/SRT/srt.py @@ -270,7 +270,7 @@ def _search_train( parser = SRTResponseData(r.text) except Exception as e: raise SRTResponseError( - f"Failed to reserve: invalid response ({r.text})" + f"Failed to decode: invalid response ({r.text})" ) from e if not parser.success(): @@ -308,7 +308,7 @@ def _search_train( parser = SRTResponseData(r.text) except Exception as e: raise SRTResponseError( - f"Failed to reserve: invalid response ({r.text})" + f"Failed to decode: invalid response ({r.text})" ) from e # When there is no more train, return code will be FAIL @@ -491,7 +491,7 @@ def _reserve( parser = SRTResponseData(r.text) except Exception as e: raise SRTResponseError( - f"Failed to reserve: invalid response ({r.text})" + f"Failed to decode: invalid response ({r.text})" ) from e if not parser.success(): @@ -569,7 +569,7 @@ def get_reservations(self, paid_only: bool = False) -> list[SRTReservation]: parser = SRTResponseData(r.text) except Exception as e: raise SRTResponseError( - f"Failed to reserve: invalid response ({r.text})" + f"Failed to decode: invalid response ({r.text})" ) from e if not parser.success(): @@ -622,7 +622,7 @@ def ticket_info(self, reservation: SRTReservation | int) -> list[SRTTicket]: parser = SRTResponseData(r.text) except Exception as e: raise SRTResponseError( - f"Failed to reserve: invalid response ({r.text})" + f"Failed to decode: invalid response ({r.text})" ) from e if not parser.success(): @@ -660,7 +660,7 @@ def cancel(self, reservation: SRTReservation | int) -> bool: parser = SRTResponseData(r.text) except Exception as e: raise SRTResponseError( - f"Failed to reserve: invalid response ({r.text})" + f"Failed to decode: invalid response ({r.text})" ) from e if not parser.success():