diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..2b70d2b --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,9 @@ +# 更新日志 + +## 1.0.1 + +- 修复了一个小 bug + +## 1.0.0 + +- 第一个正式版发布 diff --git a/README.md b/README.md index c3915df..9725bfa 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,12 @@ --- +## 更新日志 + +[CHANGELOG](CHANGELOG.md) + +--- + ## 常见问题 ### 如何终止程序? diff --git a/src/blrec/__init__.py b/src/blrec/__init__.py index 0f45c2b..07031ef 100644 --- a/src/blrec/__init__.py +++ b/src/blrec/__init__.py @@ -1,3 +1,3 @@ -__version__ = '1.0.0' +__version__ = '1.0.1' __prog__ = 'blrec' diff --git a/src/blrec/core/stream_recorder.py b/src/blrec/core/stream_recorder.py index 045701b..18a6909 100644 --- a/src/blrec/core/stream_recorder.py +++ b/src/blrec/core/stream_recorder.py @@ -231,6 +231,8 @@ class StreamRecorder( with requests.Session() as self._session: self._main_loop() + except TryAgain: + pass except Exception as e: self._handle_exception(e) finally: @@ -248,7 +250,6 @@ class StreamRecorder( retry_if_exception(lambda e: not isinstance(e, OSError)) ), wait=wait_exponential_for_same_exceptions(max=60), - stop=stop_after_delay(1800), before_sleep=before_sleep_log(logger, logging.DEBUG, 'main_loop'), ): with attempt: