summaryrefslogtreecommitdiff
path: root/kvmd/clients/streamer.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2024-09-18 04:37:43 +0300
committerMaxim Devaev <[email protected]>2024-09-18 04:37:43 +0300
commit7a53f1445619fc471c2823e7081de8b6039b938e (patch)
tree961dd0072cc976504fe4570743d801c79512e9a6 /kvmd/clients/streamer.py
parent45270a09d7b5076bac96887a1e36d752882e3adf (diff)
refactoring
Diffstat (limited to 'kvmd/clients/streamer.py')
-rw-r--r--kvmd/clients/streamer.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/kvmd/clients/streamer.py b/kvmd/clients/streamer.py
index 1d8cd601..fdc855bb 100644
--- a/kvmd/clients/streamer.py
+++ b/kvmd/clients/streamer.py
@@ -72,10 +72,10 @@ class BaseStreamerClient:
def _http_handle_errors() -> Generator[None, None, None]:
try:
yield
- except Exception as err: # Тут бывают и ассерты, и KeyError, и прочая херня
- if isinstance(err, StreamerTempError):
+ except Exception as ex: # Тут бывают и ассерты, и KeyError, и прочая херня
+ if isinstance(ex, StreamerTempError):
raise
- raise StreamerTempError(tools.efmt(err))
+ raise StreamerTempError(tools.efmt(ex))
class HttpStreamerClient(BaseStreamerClient):
@@ -167,10 +167,10 @@ def _memsink_handle_errors() -> Generator[None, None, None]:
yield
except StreamerPermError:
raise
- except FileNotFoundError as err:
- raise StreamerTempError(tools.efmt(err))
- except Exception as err:
- raise StreamerPermError(tools.efmt(err))
+ except FileNotFoundError as ex:
+ raise StreamerTempError(tools.efmt(ex))
+ except Exception as ex:
+ raise StreamerPermError(tools.efmt(ex))
class MemsinkStreamerClient(BaseStreamerClient):