refactor(logging): enhance error handling and resource management in rate limiting and sync operations

This commit is contained in:
bsiggel
2026-03-08 22:47:05 +00:00
parent 6c3cf3ca91
commit a5a122b688
2 changed files with 23 additions and 3 deletions

View File

@@ -92,7 +92,7 @@ class BeteiligteSync:
return True
except Exception as e:
self._log(f"Fehler beim Acquire Lock: {e}", level='error')
self.logger.error(f"Fehler beim Acquire Lock: {e}")
# Clean up Redis lock on error
if self.redis:
try: