Skip to content

Conversation

Rondineli
Copy link

Before

PyExiftool would get stuck if stdout dont bring anything, a timeoutError system would need to force reads stdeer.

How to reproduce:

import exiftool

pic = b"/tmp/tmpv3xu9816"
# for some reason, exiftool does not like `-` and or ` ` at end of tags
params = tuple([b'-CreationDate=2025:07:09', b'-Description=anything Here \n-',])
param_tuple = (*params, pic)

# this will make the process to hang waiting an stdout
with exiftool.ExifTool() as exif_handle:
    exif_handle.execute(*param_tuple)
    

After

PyExiftool will wait for few seconds and if nothing is returned, proceed and reads from stdeer

@Rondineli Rondineli changed the title [WIP] fix(#105) Avoiding stuck into waiting an output from exiftool fix(#105) Avoiding stuck into waiting an output from exiftool Sep 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant