sylikc / pyexiftool

PyExifTool (active PyPI project) - A Python library to communicate with an instance of Phil Harvey's ExifTool command-line application. Runs one process with special -stay_open flag, and pipes data to/from. Much more efficient than running a subprocess for each command!
Other
144 stars 17 forks source link

Fix NoneType exception in common_args check #5

Closed csparker247 closed 4 years ago

csparker247 commented 4 years ago

At the end of ExifTool.__init__, there's an iteration over the provided common_args even if it's None. This causes a NoneType is not iterable exception if nothing is provided. This fix iterates over the initialized self.common_args instead.

csparker247 commented 4 years ago

Totally forgot I had submitted this. Would it possible to merge this PR? I don't think it would cause problems with the upstream merge like #4 does.

csparker247 commented 4 years ago

Thanks!