Permalink
Browse files

fix issue #24

	modified:   exitwp.py
  • Loading branch information...
1 parent ede1dd5 commit b2034ccf361e68116737976ae1b0eb9425b2f30f @oz123 oz123 committed Jun 10, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 exitwp.py
View
@@ -97,7 +97,11 @@ def gi(q, unicode_wrap=True):
namespace, tag = q.split(':', 1)
else:
tag = q
- result = i.find(ns[namespace] + tag).text
+ try:
+ result = i.find(ns[namespace] + tag).text
+ print result
+ except AttributeError:
+ result = "No Content Found"
if unicode_wrap:
result = unicode(result)
return result

0 comments on commit b2034cc

Please sign in to comment.