logger.warn is deprecated, replaced all instances with logger.warning
Flask’s send_file complains on 0.11.0 if add_etags is used without a filename, and from 0.12.0 on ignores it, so just set add_etags=False as we don’t require them and there’s no way to specify the filename and a bytesIO object in a way that will use the filename for the tag.
logger.warn is deprecated, replaced all instances with logger.warning Flask’s send_file complains on 0.11.0 if add_etags is used without a filename, and from 0.12.0 on ignores it, so just set add_etags=False as we don’t require them and there’s no way to specify the filename and a bytesIO object in a way that will use the filename for the tag.