Killed now dead code
This commit is contained in:
parent
a30951ec28
commit
1f0ca894a2
1 changed files with 0 additions and 5 deletions
|
|
@ -517,11 +517,6 @@ def send_file(filename_or_fp, mimetype=None, as_attachment=False,
|
|||
or 'application/octet-stream'
|
||||
|
||||
if mimetype is None:
|
||||
if attachment_filename is not None:
|
||||
raise ValueError(
|
||||
'Unable to infer MIME-type from filename {0!r}, please '
|
||||
'pass one explicitly.'.format(attachment_filename)
|
||||
)
|
||||
raise ValueError(
|
||||
'Unable to infer MIME-type because no filename is available. '
|
||||
'Please set either `attachment_filename`, pass a filepath to '
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue