Yeah if u can get the light back on u should be fine I've had power outages before there of course is a chance of hermie but if it a good strain just continue like normal
We had an announced power outage 2 separate times, 14 hours each. 4 plants were veg still, indoor grow in a cab. I put an LED lantern in there, and was fine. How long have they been in flower? I think you can continue flowering and will be fine.