Ideally, the one who is inheriting the assets of that deceased person is also responsible for the liabilities.
If that person has left no assets, in that case you can refuse the pay the liabilities as well.
Also, many people denies paying the liabilities even after getting the assets of the deceased. Which seems unethical and kinda disrespectful towards the deceased person.