Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
folland87 committed Mar 28, 2024
1 parent 2b7af4c commit 28d3da6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ecorda/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
PAGE_SIZE = 500


@retry(delay=50, tries=25)
@retry(delay=10, tries=4)
def get_page(url):
try:
r = requests.get(url, headers=get_headers())
Expand Down
9 changes: 6 additions & 3 deletions ecorda/load_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ def extraction_all(framework, liste_datas, url_ue):
logger.error(f'Error in table {b}: {e}')
datas_errors.append([b, e])

logger.debug(f'Enpty tables: {datas_empty.join(",")}')
logger.debug(f'Loaded tables: {datas_load.join(",")}')
logger.debug(f'Error: {datas_errors}')
try:
logger.debug(f'Enpty tables: {datas_empty}')
logger.debug(f'Loaded tables: {datas_load}')
logger.debug(f'Error: {datas_errors}')
except Exception as e:
logger.error(f'Error in logging: {e}')
return datas_load, datas_empty, datas_errors

0 comments on commit 28d3da6

Please sign in to comment.