[instagram][error] FilenameFormatError: Applying filename format string failed (TypeError: unsupported format string passed to NoneType.__format__) #1986
Answered
by
mikf
Miroslav-Cetojevic
asked this question in
Q&A
-
I could've sworn that this error popped up overnight. Here's my
Command line: |
Beta Was this translation helpful? Give feedback.
Answered by
mikf
Oct 28, 2021
Replies: 1 comment 1 reply
-
"filename": "{post_shortcode}{num:?_//>02}_by_{username}.{extension}",
"filename": {
"locals().get('num')": "{post_shortcode}_{num:>02}_by_{username}.{extension}",
"" : "{post_shortcode}_by_{username}.{extension}"
}
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Miroslav-Cetojevic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
{num}
is not defined for posts with only 1 image/video, but it still tries to apply>02
to the missing value and fails. You could either use a?
or conditional filenames: