cfpb / github-wiki-search

:warning: DEPRECATED :warning:
Creative Commons Zero v1.0 Universal
7 stars 17 forks source link

handle gh/e resp with no link header #81

Closed dgreisen-cfpb closed 9 years ago

m3brown commented 9 years ago

Can't the return structure be done a lot cleaner?

if links and next_re.match(links):
    return next_match.groups()[0]
else:
    return None
dgreisen-cfpb commented 9 years ago

no because if links is None, then it will error.

dgreisen-cfpb commented 9 years ago

ok. could default to empty string.

m3brown commented 9 years ago

Ok I'll merge it, not worth fretting over.