Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
catch network exceptions when transferring data
This fixes #78 by moving the call to f.read() inside the exception-handling structure of _safe_open (now _safe_read). The function now returns a string, which util.bytes_to_elementtree has been modified to accept. Signed-off-by: Adrian Sampson <adrian@radbox.org>
- Loading branch information
Showing
2 changed files
with
20 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters