diff --git a/iptcinfo3.py b/iptcinfo3.py index 70432e9..dd50ce2 100644 --- a/iptcinfo3.py +++ b/iptcinfo3.py @@ -638,7 +638,7 @@ def save_as(self, newfile, options=None): """Saves Jpeg with IPTC data to a given file name.""" with smart_open(self._fobj, 'rb') as fh: if not file_is_jpeg(fh): - logger.error('Source file %s is not a Jpeg.' % self._fob) + logger.error('Source file %s is not a Jpeg.' % self._fobj) return None jpeg_parts = jpeg_collect_file_parts(fh)