Skip to content

Commit

Permalink
Merge pull request #770 from gitnnolabs/fix_oaipmh_metadata
Browse files Browse the repository at this point in the history
Assegura que não tenha erro na geração do source.
  • Loading branch information
gitnnolabs authored Jun 16, 2024
2 parents 68dd597 + 9399642 commit 787f36e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion article/search_indexes.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,10 @@ def prepare_license(self, obj):
def prepare_sources(self, obj):
# property no article.
# Acta Cirúrgica Brasileira, Volume: 37, Issue: 7, Article number: e370704, Published: 10 OCT 2022
return obj.source
try:
return obj.source
except Exception as ex:
return ""

def get_model(self):
return Article
Expand Down

0 comments on commit 787f36e

Please sign in to comment.