removing some errors

This commit is contained in:
afeiszli
2021-08-19 17:35:14 -04:00
parent d0c2f06e60
commit cd37d7701b
3 changed files with 5 additions and 4 deletions

View File

@@ -133,7 +133,7 @@ func getNetworks(w http.ResponseWriter, r *http.Request) {
err := errors.New("Networks Error")
if networksSlice[0] == ALL_NETWORK_ACCESS {
allnetworks, err = models.GetNetworks()
if err != nil {
if err != nil && !database.IsEmptyRecord(err){
returnErrorResponse(w, r, formatError(err, "internal"))
return
}