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

[twitter]avatar download problem #6007

Closed
maplestory03 opened this issue Aug 13, 2024 · 1 comment
Closed

[twitter]avatar download problem #6007

maplestory03 opened this issue Aug 13, 2024 · 1 comment

Comments

@maplestory03
Copy link

use "include":"avatar"
An error occurred and the avatar was not downloaded. From the webpage, the avatar appears normal
[twitter][error] FilenameFormatError: Applying filename format string failed (TypeError: unsupported operand type(s) for -: 'CustomNone' and 'datetime.datetime')
user: 0uka

@maplestory03 maplestory03 changed the title [twitter]some avatar image problem [twitter]avatar download problem Aug 13, 2024
@mikf
Copy link
Owner

mikf commented Aug 13, 2024

This user's avatar is too old to generate a proper date for, so you get a special null object instead. It didn't support a date - datetime(...) operation, but it does now (ad73789).

You could also use conditional format strings to test if date has an actual value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants