use f-strings

This commit is contained in:
Xevion
2020-01-19 22:35:13 -06:00
parent 4aa971ba9f
commit e1e5c82950
2 changed files with 2 additions and 1 deletions

View File

@@ -62,7 +62,7 @@ class Section(db.Model):
"""given an List of unformatted script quotes, automatically creates Quotes assigned to this Section"""
for quote in quotes:
match = re.match()
assert match != None, "Quote '{}' could not be processed.".format(quote)
assert match != None, f"Quote '{quote}' could not be processed."
q = Quote(section=self, speaker=match[1], text=match[2])
db.session.add(q)
if commit: db.session.commit()