Skip to content

Commit 1f0ca89

Browse files
committed
Killed now dead code
1 parent a30951e commit 1f0ca89

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

flask/helpers.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -517,11 +517,6 @@ def send_file(filename_or_fp, mimetype=None, as_attachment=False,
517517
or 'application/octet-stream'
518518

519519
if mimetype is None:
520-
if attachment_filename is not None:
521-
raise ValueError(
522-
'Unable to infer MIME-type from filename {0!r}, please '
523-
'pass one explicitly.'.format(attachment_filename)
524-
)
525520
raise ValueError(
526521
'Unable to infer MIME-type because no filename is available. '
527522
'Please set either `attachment_filename`, pass a filepath to '

0 commit comments

Comments
 (0)