Skip to content

Fix NoneType exception in common_args check#5

Merged
sylikc merged 1 commit intosylikc:masterfrom
csparker247:fix-nonetype-exception
Apr 9, 2020
Merged

Fix NoneType exception in common_args check#5
sylikc merged 1 commit intosylikc:masterfrom
csparker247:fix-nonetype-exception

Conversation

@csparker247
Copy link
Copy Markdown

@csparker247 csparker247 commented Feb 7, 2020

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
Copy link
Copy Markdown
Author

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.

@sylikc sylikc merged commit 44e2e4e into sylikc:master Apr 9, 2020
@csparker247
Copy link
Copy Markdown
Author

Thanks!

@csparker247 csparker247 deleted the fix-nonetype-exception branch April 9, 2020 13:02
@sylikc sylikc added the bug Something isn't working label May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

2 participants