mirror of
https://github.com/wassname/ray.git
synced 2026-07-08 18:24:45 +08:00
Partially Use f string (#10218)
* flynt. trial 1. * Trial 1. * Addressed code review.
This commit is contained in:
@@ -90,7 +90,7 @@ class ImportThread:
|
||||
key = self.redis_client.lindex("Exports", i)
|
||||
self._process_key(key)
|
||||
except (OSError, redis.exceptions.ConnectionError) as e:
|
||||
logger.error("ImportThread: {}".format(e))
|
||||
logger.error(f"ImportThread: {e}")
|
||||
finally:
|
||||
# Close the pubsub client to avoid leaking file descriptors.
|
||||
import_pubsub_client.close()
|
||||
|
||||
Reference in New Issue
Block a user