Commit 67006cfe authored by Vitaly Lipatov's avatar Vitaly Lipatov

internal: handle configuration errors in unban request

parent 263d5d7f
......@@ -78,7 +78,7 @@ class OriginalDstHandler(BaseHTTPRequestHandler):
'by': f"{ip} was unblocked by {client_ip}",
})
r.close()
except (redis.RedisError, ValueError):
except (redis.RedisError, ValueError, KeyError, configparser.Error):
logger.exception('Unable to enqueue internal unban request')
self.send_error(503, 'Unable to process unban request')
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment