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
4 changes: 4 additions & 0 deletions trello_full_backup/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@ def cli():

args = parser.parse_args()

if API_KEY == "" or API_TOKEN == "":
print("The environment variables TRELLO_API_KEY and TRELLO_TOKEN are not set")
sys.exit(1)

dest_dir = datetime.datetime.now().isoformat('_')
dest_dir = '{}_backup'.format(dest_dir.replace(':', '-').split('.')[0])

Expand Down