Skip to content

Commit

Permalink
Merge branch 'hotfix/0.22.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
rlskoeser committed Nov 13, 2015
2 parents c88e7a3 + c1c38aa commit 5bc6f46
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ The following is a summary of changes and improvements to
:mod:`eulxml`. New features in each version should be listed, with
any necessary information about installation or upgrade notes.

0.22.1
------

* bugfix: workaround for resolver error failing to load schemas in some
cases

0.22
----

Expand Down
2 changes: 1 addition & 1 deletion eulxml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version_info__ = (0, 22, 0, None)
__version_info__ = (0, 22, 1, None)

# Dot-connect all but the last. Last is dash-connected if not None.
__version__ = '.'.join([str(i) for i in __version_info__[:-1]])
Expand Down
5 changes: 4 additions & 1 deletion eulxml/xmlmap/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,10 @@ def resolve(self, url, public_id, context):
logger.debug('Resolving url %s' % url)
f = urllib2.urlopen(url, None, 10)
# set a timeout in case connection fails or is unreasonably slow
return self.resolve_file(f, context, base_url=url)
if f:
return self.resolve_file(f, context, base_url=url)
else:
return self.resolve_filename(url, context)
_defaultResolver = Urllib2Resolver()


Expand Down

0 comments on commit 5bc6f46

Please sign in to comment.