Lock stopped working/can't open door

I just replaced new batteries for the lock but it still doesn’t work. When i put in the passcode it says “door is open” but when i try to open it won’t open.