mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
python: Manually convert more percent-formatting to f-strings.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
3461db7ef5
commit
5dc9b55c43
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user