mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-02-24 23:07:36 +08:00
Merge remote-tracking branch 'origin/development' into development
This commit is contained in:
commit
01b1fda8fc
2 changed files with 11 additions and 3 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
0.9.3-beta.13
|
||||
0.9.3-beta.14
|
|
@ -298,4 +298,12 @@ def set_throttled_providers(data):
|
|||
handle.write(data)
|
||||
|
||||
|
||||
tp = eval(str(get_throttled_providers()))
|
||||
try:
|
||||
tp = eval(str(get_throttled_providers()))
|
||||
if not isinstance(tp, dict):
|
||||
raise ValueError('tp should be a dict')
|
||||
except Exception:
|
||||
logging.error("Invalid content in throttled_providers.dat. Resetting")
|
||||
# set empty content in throttled_providers.dat
|
||||
set_throttled_providers('')
|
||||
tp = eval(str(get_throttled_providers()))
|
||||
|
|
Loading…
Reference in a new issue