Cosmetic changes

This commit is contained in:
jeancf 2022-09-14 16:28:48 +02:00
parent 4ccce6aac1
commit bfbe9704f7

View File

@ -200,6 +200,7 @@ def is_time_valid(timestamp, max_age, min_delay):
return ret return ret
def login(instance, account, password): def login(instance, account, password):
# Create Mastodon application if it does not exist yet # Create Mastodon application if it does not exist yet
if not os.path.isfile(instance + '.secret'): if not os.path.isfile(instance + '.secret'):
@ -550,7 +551,7 @@ def main(argv):
logging.debug("Uploading video failed") logging.debug("Uploading video failed")
pass pass
else: # Only upload pic if no video was uploaded else: # Only upload pic if no video_file_listdeo was uploaded
# Upload photos # Upload photos
for photo in tweet['photos']: for photo in tweet['photos']:
media = False media = False