summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/theming.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/theming.py b/src/theming.py
index dd42342c..d62b47ae 100644
--- a/src/theming.py
+++ b/src/theming.py
@@ -451,7 +451,7 @@ def reload_theme():
log.error('Failed to load the theme %s', theme_name, exc_info=True)
exc = e
finally:
- if version_info[1] < 3:
+ if version_info[1] < 3 and imp.lock_held():
imp.release_lock()
if not new_theme: