Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

fixed issue #24 failed build ... #26

Merged
merged 1 commit into from

2 participants

@oz123

modified: exitwp.py

I bumped into this issue, and quickly came with that patchy patch.

Hope it helps.

Cheers, and thanks for that excellent tool!

Oz

@oz123 oz123 fix issue #24
	modified:   exitwp.py
b2034cc
@thomasf thomasf merged commit e3cca8c into thomasf:master
@thomasf
Owner

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 10, 2012
  1. @oz123

    fix issue #24

    oz123 authored
    	modified:   exitwp.py
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 1 deletion.
  1. +5 −1 exitwp.py
View
6 exitwp.py
@@ -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
Something went wrong with that request. Please try again.