Commit 31caf9c3 authored by Mikhail Karnevskiy's avatar Mikhail Karnevskiy
Browse files

Revert changes of errors catching back

parent 3f44219e
......@@ -156,6 +156,14 @@ class Streamer:
self._handle_receiver_temporary_error()
self._handle_end_of_stream()
return None, None
except TemporaryError as err:
log.warn(format_error(err))
self._handle_receiver_temporary_error()
return None, None
except MissingDataError as err:
log.error("Missing data error", exc_info=True)
self._handle_receiver_missing_data_error()
return None, None
except StreamFinishedError as err:
log.info("Stream is finished")
self._handle_end_of_stream()
......@@ -165,14 +173,6 @@ class Streamer:
if self.end_of_stream_callback is None:
self.stop()
return None, None
except TemporaryError as err:
log.warn(format_error(err))
self._handle_receiver_temporary_error()
return None, None
except MissingDataError as err:
log.error("Missing data error", exc_info=True)
self._handle_receiver_missing_data_error()
return None, None
except Exception as err:
log.critical("Unhandled exception", exc_info=True)
self._handle_receiver_critical_error()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment