Skip to content

Format string doesn't have f prefix

In the version of minify.py installed by PIP, line 138:

logger.error("Sanity check failed: {msg}, quiting...")

Since the string is not an f-string, and you don't call .format() on it, it will only ever print out literally failed: {msg} instead of the contents of the msg variable. (As an aside, quitting is misspelled.)

It should be this:

logger.error(f"Sanity check failed: {msg}, quitting...")
Edited by Matt Chaput