From 3f25135c4ed9a260da5cc4fe5579f0da68b4781e Mon Sep 17 00:00:00 2001 From: Stefal Date: Fri, 15 Sep 2023 20:12:54 +0200 Subject: [PATCH] check error in image data. It could happen if the token is wrong or disabled should fix #4 --- download.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/download.py b/download.py index f22c663..59a6f94 100644 --- a/download.py +++ b/download.py @@ -127,6 +127,10 @@ if __name__ == '__main__': for i,image_data in enumerate(get_image_data_from_sequences__future(sequence_ids, header)): if args.image_limit is not None and i >= args.image_limit: break + if 'error' in image_data: + print("something wrong happened ! Please check your token and/or your connection") + print("data : ", image_data) + sys.exit images_data.append(image_data) #sys.exit()