Commit 4ea26848 authored by Médéric Boquien's avatar Médéric Boquien
Browse files

Use f-strings in pcigale rather than regular string as they are easier to read.

parent bd31c1de
......@@ -17,7 +17,7 @@ class VdtValueRepeatedError(vdt.VdtValueError):
Traceback (most recent call last):
VdtValueRepeatedError: the value "jedie" is too long.
"""
vdt.ValidateError.__init__(self, 'the value {} is repeated.'.format(value))
vdt.ValidateError.__init__(self, f"the value {value} is repeated.")
def is_cigale_list(inobject, dtype='float', minvalue=None, maxvalue=None,
......
......@@ -39,8 +39,8 @@ def read_table(file_):
try:
table = Table.read(file_, format="ascii", delimiter='\s')
except InconsistentTableError:
raise Exception("The file <{}> can not be parsed as a data "
"table.".format(file_))
raise Exception(f"The file {file_} can not be parsed as a data "
"table.")
# Convert all the integers to floats.
return Table([
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment