style(offscreen): lint fixes for the new code (Codacy)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Chuck
2026-09-24 11:02:22 -04:00
co-authored by Claude Opus 5.5
parent 0f68fbcfdc
commit 8163104581
3 changed files with 15 additions and 12 deletions
+2 -3
View File
@@ -160,11 +160,10 @@ class PluginAdapter:
there is no plugin manager to ask -- the behaviour before the lock was
taken here at all.
"""
get_lock = getattr(self.plugin_manager, 'get_plugin_lock', None)
if get_lock is None:
if not hasattr(self.plugin_manager, 'get_plugin_lock'):
yield True
return
lock = get_lock(plugin_id)
lock = self.plugin_manager.get_plugin_lock(plugin_id)
acquired = lock.acquire(timeout=self.PLUGIN_LOCK_TIMEOUT)
try:
yield acquired