Skip to content

Commit

Permalink
Null segment exception added
Browse files Browse the repository at this point in the history
  • Loading branch information
muzahidul-opti committed Aug 12, 2024
1 parent 7d59eac commit 2c92f91
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ open class ODPSegmentClient(private val client: ClientForODPOnly, private val lo
logger.debug("Successfully fetched ODP segments: {}", json)
return@Request json
} else {
logger.error("Unexpected response from ODP segment endpoint, status: $status")
return@Request null
var errMsg = "Unexpected response from ODP segment endpoint, status: $status"
logger.error(errMsg)
// return@Request null
throw Exception(errMsg)
}
} catch (e: Exception) {
logger.error("Error making ODP segment request", e)
Expand Down

0 comments on commit 2c92f91

Please sign in to comment.