Skip to content

Commit

Permalink
Updated error handling in logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kelockhart committed Oct 30, 2023
1 parent 5bd2b3b commit b9dadce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ADSOrcid/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,8 @@ def get_claims(self, orcidid, api_token, api_url, force=False,
break
except Exception as e:
self.logger.warning('Exception while searching for matching bibcode for: {}'.format(fvalue))
self.logger.warning(e.message)
if getattr(e, "message", ""):
self.logger.warning(e.message)


if bibc:
Expand Down

0 comments on commit b9dadce

Please sign in to comment.