release: v1.0.1
This commit is contained in:
parent
e41cf3181d
commit
9ef43ac554
9
CHANGELOG.md
Normal file
9
CHANGELOG.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# 更新日志
|
||||||
|
|
||||||
|
## 1.0.1
|
||||||
|
|
||||||
|
- 修复了一个小 bug
|
||||||
|
|
||||||
|
## 1.0.0
|
||||||
|
|
||||||
|
- 第一个正式版发布
|
@ -105,6 +105,12 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## 更新日志
|
||||||
|
|
||||||
|
[CHANGELOG](CHANGELOG.md)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## 常见问题
|
## 常见问题
|
||||||
|
|
||||||
### 如何终止程序?
|
### 如何终止程序?
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
|
|
||||||
__version__ = '1.0.0'
|
__version__ = '1.0.1'
|
||||||
__prog__ = 'blrec'
|
__prog__ = 'blrec'
|
||||||
|
@ -231,6 +231,8 @@ class StreamRecorder(
|
|||||||
|
|
||||||
with requests.Session() as self._session:
|
with requests.Session() as self._session:
|
||||||
self._main_loop()
|
self._main_loop()
|
||||||
|
except TryAgain:
|
||||||
|
pass
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self._handle_exception(e)
|
self._handle_exception(e)
|
||||||
finally:
|
finally:
|
||||||
@ -248,7 +250,6 @@ class StreamRecorder(
|
|||||||
retry_if_exception(lambda e: not isinstance(e, OSError))
|
retry_if_exception(lambda e: not isinstance(e, OSError))
|
||||||
),
|
),
|
||||||
wait=wait_exponential_for_same_exceptions(max=60),
|
wait=wait_exponential_for_same_exceptions(max=60),
|
||||||
stop=stop_after_delay(1800),
|
|
||||||
before_sleep=before_sleep_log(logger, logging.DEBUG, 'main_loop'),
|
before_sleep=before_sleep_log(logger, logging.DEBUG, 'main_loop'),
|
||||||
):
|
):
|
||||||
with attempt:
|
with attempt:
|
||||||
|
Loading…
Reference in New Issue
Block a user