Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WARNING] - unsupported operand type(s) for +: 'NoneType' and 'datetime.timedelta' #220

Open
andreaseberharter opened this issue Nov 10, 2023 · 3 comments

Comments

@andreaseberharter
Copy link

Hey, thank you for this amazing software! I ran it over 1.7TB of photos and videos and after 2 days it stopped with the following error message:

[WARNING] - unsupported operand type(s) for +: 'NoneType' and 'datetime.timedelta'

I tried to find a solution, but have no idea what could be wrong.

I am on macOS Monterey 12.7.1 and installed via brew (had to run pip3 to install tqdm like described here #170). Version is:
~ % phockup -v v1.10.1

I can't the delete the source folder as I don't know which files have been successfully processed already.

Any help or pointer into the right direction would be very welcome.
Andreas

@ivandokov
Copy link
Owner

The issue is related to this PR #181
Hopefully the author @wbison3 will be able to assist you in resolving the issue?

@klauskiwi
Copy link

Ivan is correct. I was hitting the same issue, and could succeed after reverting b836777.

The @wbison3 is that you assume that there will always be a DateTime if TimeZone is present, which might make sense, but it's a weak assumption. Should be easily fixed if you check for it on the conditional at line 62..

@ivandokov
Copy link
Owner

@klauskiwi can you submit a fix and cover the edge case with a test

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

No branches or pull requests

3 participants