Skip to content

Commit c5cf184

Browse files
committed
fix: Fix New Codacy Errors
Signed-off-by: aceppaluni <aceppaluni@gmail.com>
1 parent 41bdd1f commit c5cf184

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/hiero_sdk_python/query/fee_estimate_query.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def execute(self, client) -> FeeEstimateResponse:
109109

110110
try:
111111
self._transaction.freeze_with(client)
112-
except Exception as e:
112+
except (RuntimeError, ValueError) as e:
113113
# Ignore if it's already frozen
114114
if "already frozen" not in str(e).lower():
115115
raise
@@ -286,5 +286,5 @@ def _is_chunked(self) -> bool:
286286

287287
return isinstance(
288288
self._transaction,
289-
(TopicMessageSubmitTransaction, FileAppendTransaction),
289+
(TopicMessageSubmitTransaction, FileAppendTransaction), # noqa: UP038
290290
)

0 commit comments

Comments
 (0)