diff --git a/openaddr/cache.py b/openaddr/cache.py index aac53f22..f06f0ef3 100644 --- a/openaddr/cache.py +++ b/openaddr/cache.py @@ -207,8 +207,11 @@ def guess_url_file_extension(url): if path_ext == attachment_ext: _L.debug('Content-Disposition agrees: "{}"'.format(match.group('filename'))) else: - _L.debug('Content-Disposition disagrees: "{}"'.format(match.group('filename'))) - path_ext = False + _L.debug('Content-Disposition disagrees: "{}" says we should use "{}", using "{}" instead'.format( + match.group('filename'), + attachment_ext, + path_ext, + )) if not path_ext: #