Skip to content

Commit 398cacd

Browse files
committed
Fix a bug where type comparison is case-sensitive for TIF
TIF/TIFF is both rendered and exported by the PDF renderer and exporter. However, the renderer only allows .tif and .tiff to be exported but accidentally leaves .TIF, .TIFF behind. They end up being rendered directly as PDF which fails.
1 parent 7885406 commit 398cacd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mfr/extensions/pdf/render.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class PdfRenderer(extension.BaseRenderer):
2121
def render(self):
2222
download_url = munge_url_for_localdev(self.metadata.download_url)
2323
logger.debug('extension::{} supported-list::{}'.format(self.metadata.ext, settings.EXPORT_SUPPORTED))
24-
if self.metadata.ext not in settings.EXPORT_SUPPORTED:
24+
if self.metadata.ext.lower() not in settings.EXPORT_SUPPORTED:
2525
logger.debug('Extension not found in supported list!')
2626
return self.TEMPLATE.render(
2727
base=self.assets_url,

0 commit comments

Comments
 (0)