the invaders reached the gates of krakow but they couldn't take the city