diff core/download.py @ 979:a6331579ff43

Convert ssl_images to use download_file.
author Brian Neal <bgneal@gmail.com>
date Fri, 09 Oct 2015 22:20:32 -0500
parents f5aa74dcdd7a
children 3ebde23a59d0
line wrap: on
line diff
--- a/core/download.py	Mon Oct 05 20:26:14 2015 -0500
+++ b/core/download.py	Fri Oct 09 22:20:32 2015 -0500
@@ -40,6 +40,8 @@
         suffix = mimetypes.guess_extension(content_type) if content_type else ''
         if suffix == '.jpe':
             suffix = '.jpg'
+        elif suffix is None:
+            suffix = ''
         fd, path = tempfile.mkstemp(suffix=suffix)
         os.close(fd)