python: Manually convert more percent-formatting to f-strings.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-06-13 17:57:50 -07:00
committed by Tim Abbott
parent 3461db7ef5
commit 5dc9b55c43
44 changed files with 223 additions and 194 deletions

View File

@@ -83,8 +83,7 @@ You can use the command list_realms to find ID of the realms in this server."""
return Realm.objects.get(id=val)
return Realm.objects.get(string_id=val)
except Realm.DoesNotExist:
raise CommandError("There is no realm with id '%s'. Aborting." %
(options["realm_id"],))
raise CommandError("There is no realm with id '{}'. Aborting.".format(options["realm_id"]))
def get_users(self, options: Dict[str, Any], realm: Optional[Realm],
is_bot: Optional[bool]=None,