Skip to content

Commit

Permalink
Assegura que não tenha erro na geração do source.
Browse files Browse the repository at this point in the history
  • Loading branch information
gitnnolabs committed Jun 16, 2024
1 parent 62f23f9 commit 9399642
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 9399642

Please sign in to comment.