From 6a34f2d35f03117ac7e9f3f3d4e2af202f970b82 Mon Sep 17 00:00:00 2001 From: josdion Date: Sun, 19 Apr 2020 10:18:58 +0300 Subject: [PATCH] release git config writer From documentation: In Python 3, it's required to explicitly release locks and flush changes, as __del__ is not called deterministically anymore. --- bazarr/check_update.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bazarr/check_update.py b/bazarr/check_update.py index 4938724a2..5d62bb417 100644 --- a/bazarr/check_update.py +++ b/bazarr/check_update.py @@ -34,6 +34,8 @@ def gitconfig(): logging.debug('BAZARR Settings git email') config_write.set_value("user", "email", "bazarr@fake.email") + config_write.release() + def check_and_apply_update(): check_releases()