if we didn't convert image, don't save data
This commit is contained in:
parent
ac5112757e
commit
d2870d8207
|
@ -175,6 +175,7 @@ func savedonk(url string, name, media string, localize bool) *Donk {
|
|||
if err != nil {
|
||||
log.Printf("unable to decode image: %s", err)
|
||||
localize = false
|
||||
data = []byte{}
|
||||
goto saveit
|
||||
}
|
||||
data = img.Data
|
||||
|
|
Loading…
Reference in New Issue