Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion trello_full_backup/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def download_attachments(c, max_size, tokenize=False):
try:
content = requests.get(attachment['url'],
stream=True,
timeout=ATTACHMENT_REQUEST_TIMEOUT)
timeout=ATTACHMENT_REQUEST_TIMEOUT,
headers={"Authorization":"OAuth oauth_consumer_key=\"{}\", oauth_token=\"{}\"".format(API_KEY, API_TOKEN)})
except Exception:
sys.stderr.write('Failed download: {}'.format(attachment_name))
continue
Expand Down