Skip to content

Commit

Permalink
Hotfix: return empty list if no GBIF record
Browse files Browse the repository at this point in the history
  • Loading branch information
alycejenni committed Nov 11, 2021
1 parent 6d55a52 commit 8642ab5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ckanext/nhm/lib/external_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def _get_gbif_record(record):
def get_gbif_links(record):
gbif_record = _get_gbif_record(record)
if not gbif_record:
return False
return []
all_links = []
gbif_links = [
(gbif_record.get('catalogNumber'), f'https://gbif.org/occurrence/{gbif_record.get("key")}')
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from collections import OrderedDict
from setuptools import find_packages, setup

__version__ = '3.0.15'
__version__ = '3.0.16'

with open('README.md', 'r') as f:
__long_description__ = f.read()
Expand Down

0 comments on commit 8642ab5

Please sign in to comment.