[issue20524] format error messages should provide context information

Irit Katriel report at bugs.python.org
Fri Sep 10 14:14:27 EDT 2021


Irit Katriel <iritkatriel at gmail.com> added the comment:

Reproduced on 3.11:

>>> dd = {'length': 12, 'id': 4, 'title': "t", 'run_time': datetime.time()}
>>> '{run_time:%H:%M:%S}, ,COM,DA{id},"{title:.43}",{id},{length:%M:%S}'.format(**dd)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: Invalid format specifier

----------
nosy: +iritkatriel
versions: +Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue20524>
_______________________________________


More information about the Python-bugs-list mailing list