Skip to content
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.

Commit

Permalink
Fix detecting None in results
Browse files Browse the repository at this point in the history
  • Loading branch information
mhucka committed Jun 29, 2018
1 parent 4c6e7b3 commit b5a85f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions turf/turf.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ def num_records(marcxml):

def rewrite_url(url_data):
for pat in _recognized_patterns:
if not url_data.final:
continue
content_match = re.match(pat, url_data.final)
if content_match:
real_destination = decoded_html(content_match.group(1))
Expand Down

0 comments on commit b5a85f1

Please sign in to comment.