Skip to content

Commit

Permalink
workflows: fix plot extraction errors
Browse files Browse the repository at this point in the history
  • Loading branch information
drjova committed Nov 19, 2024
1 parent 615ca80 commit 9339e19
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions inspirehep/modules/workflows/tasks/arxiv.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,14 @@ def arxiv_plot_extract(obj, eng):
current_app.logger.exception(err)
delete_empty_key(obj, 'figures')
return
except Exception as err:
obj.log.error(
'Error extracting plots for %s. Report and skip.',
arxiv_id,
)
current_app.logger.exception(err)
delete_empty_key(obj, 'figures')
return

if 'figures' in obj.data:
for figure in obj.data['figures']:
Expand Down

0 comments on commit 9339e19

Please sign in to comment.