changed panics to just print
This commit is contained in:
@@ -52,6 +52,7 @@ func get_redditbooru_image(sub string) <-chan string{
|
|||||||
out, err := ioutil.ReadAll(resp.Body)
|
out, err := ioutil.ReadAll(resp.Body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("Error reading response from redditbooru, ", err)
|
fmt.Println("Error reading response from redditbooru, ", err)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// randomize the seed for the random int
|
// randomize the seed for the random int
|
||||||
@@ -98,7 +99,8 @@ func get_imgur_image(sub string) <-chan string {
|
|||||||
// read response
|
// read response
|
||||||
out, err := ioutil.ReadAll(resp.Body)
|
out, err := ioutil.ReadAll(resp.Body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
fmt.Println("Error reading response from imgur, ", err)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// randomize the seed for the random int
|
// 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)
|
out, err := ioutil.ReadAll(resp.Body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("Error reading response from reddit, ", err)
|
fmt.Println("Error reading response from reddit, ", err)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// randomize the seed for the random int
|
// randomize the seed for the random int
|
||||||
|
Reference in New Issue
Block a user