Having had that happen to me in the past, often now, I carry charged batteries in my purse. But not yesterday. Just the day I needed them they weren't there. The afternoon began with a few off-colour words and remained photo-free.
The up-side is - it gave me much more knitting time. I am about half way to the bottom cast-off on my little cream coloured summer cardi.
pattern research for the correct number of stitches to cast on, the rest of the sweater is pattern-free. Happily, I can report that it fits. I am also happy to report that all this knitting that you see here