From aeb01ac7930e7e0ccb8e9c828049aae5957067e7 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 23 Jun 2026 18:07:48 +0200 Subject: use more format strings --- vk/tracking/db/format.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vk/tracking/db') diff --git a/vk/tracking/db/format.py b/vk/tracking/db/format.py index 66d9132..dfe33e3 100644 --- a/vk/tracking/db/format.py +++ b/vk/tracking/db/format.py @@ -35,7 +35,7 @@ class Format(Enum): return self._open_output_log_file(path) if self is Format.NULL: return self._open_output_database_file(None) - raise NotImplementedError("unsupported database format: " + str(self)) + raise NotImplementedError(f"unsupported database format: {self}") @staticmethod def _open_output_log_file(path): @@ -52,7 +52,7 @@ class Format(Enum): return NotImplementedError("cannot read from a log file") if self is Format.NULL: return backend.null.Reader() - raise NotImplementedError("unsupported database format: " + str(self)) + raise NotImplementedError(f"unsupported database format: {self}") def open_input_file(self, path=None): if self is Format.CSV: @@ -61,4 +61,4 @@ class Format(Enum): raise NotImplementedError("cannot read from a log file") if self is Format.NULL: return io.open_input_text_file(None) - raise NotImplementedError("unsupported database format: " + str(self)) + raise NotImplementedError(f"unsupported database format: {self}") -- cgit v1.3