diff --git a/utils.py b/utils.py index 64cc2cf..219feb4 100644 --- a/utils.py +++ b/utils.py @@ -65,7 +65,8 @@ def search_images_ddg(key,max_n=200): if max_n < 1: return L(set(urls)) # dedupe if 'next' not in data: return L(set(urls)) requestUrl = url + data['next'] - except: + except Exception as e: + print('Error: %s. Contiuing...' % e) pass