changed panics to just print

This commit is contained in:
2020-06-06 23:01:03 -05:00
parent f887166ca5
commit a22c3e6b2f

View File

@@ -52,6 +52,7 @@ func get_redditbooru_image(sub string) <-chan string{
out, err := ioutil.ReadAll(resp.Body)
if err != nil {
fmt.Println("Error reading response from redditbooru, ", err)
return
}
// randomize the seed for the random int
@@ -98,7 +99,8 @@ func get_imgur_image(sub string) <-chan string {
// read response
out, err := ioutil.ReadAll(resp.Body)
if err != nil {
panic(err)
fmt.Println("Error reading response from imgur, ", err)
return
}
// randomize the seed for the random int
@@ -144,6 +146,7 @@ func get_subreddit_image(sub string) <-chan string {
out, err := ioutil.ReadAll(resp.Body)
if err != nil {
fmt.Println("Error reading response from reddit, ", err)
return
}
// randomize the seed for the random int