config key error: fix format string (#23610)

This commit is contained in:
Greg Becker 2021-05-13 02:20:32 -07:00 committed by GitHub
parent 97e6c0fda4
commit 190b043161
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,7 +129,7 @@ def first_existing(dictionary, keys):
try: try:
return next(k for k in keys if k in dictionary) return next(k for k in keys if k in dictionary)
except StopIteration: except StopIteration:
raise KeyError("None of %s is in dict!" % keys) raise KeyError("None of %s is in dict!" % str(keys))
class ConfigScope(object): class ConfigScope(object):