Skip to content

Commit

Permalink
#121 additional control
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Feb 22, 2024
1 parent 451fe3a commit 4ce469b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/OWSHttpRequest.R
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ OWSHttpRequest <- R6Class("OWSHttpRequest",
writeBin(req$response, exception_tmp_file)
xmlObj = try(XML::xmlParse(exception_tmp_file), silent = TRUE)
}
if(!is(xmlObj, "try-error")) if(!is.null(xmlNamespaces(xmlObj)$ows)){
if(!is(xmlObj, "try-error")) if(is(xmlObj, "XMLInternalNode")) if(!is.null(xmlNamespaces(xmlObj)$ows)){
exception <- getNodeSet(xmlObj, "//ows:Exception", c(ows = xmlNamespaces(xmlObj)$ows$uri))
if(length(exception)>0){
exception <- OWSException$new(xmlObj = exception[[1]])
Expand Down

0 comments on commit 4ce469b

Please sign in to comment.