Skip to content

Commit

Permalink
fixed get_espg_id to not assume a result occurs (#765)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveChapmanBCDX authored and ll911 committed Jun 20, 2019
1 parent a2e9c81 commit bfe00ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ckanext/bcgov/util/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,11 @@ def get_espg_id(espg_string):
import re
a = re.compile("_([0-9]+)")
espg_id = a.findall(espg_string)
return espg_id[0]
if len(espg_id)>0:
return espg_id[0]
else:
return ""



def get_iso_topic_values(iso_topic_str):
Expand Down

0 comments on commit bfe00ba

Please sign in to comment.