Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Commit

Permalink
Merge pull request #81 from GenieTim/patch-1
Browse files Browse the repository at this point in the history
Fix ValueError issues
  • Loading branch information
thomasf committed Sep 7, 2019
2 parents 89667af + ff979fe commit 842acbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exitwp.py
Expand Up @@ -122,7 +122,7 @@ def gi(q, unicode_wrap=True, empty=False):
else:
tag = q
try:
result = (i.find(ns[namespace] + tag) or i.find(tag)).text.strip()
result = (i.find(q, ns) or i.find(tag) or i.find(ns[namespace] + tag)).text.strip()
print result.encode('utf-8')
except AttributeError:
result = 'No Content Found'
Expand Down

0 comments on commit 842acbd

Please sign in to comment.