Handling "*" in ex52 lpthw

I was working on adding a “room attempts” functionality. I got a brute force version working. But I am curious about how I could implement a better way to handle the "*" catchall for the laser weapon armory and the escape pod.

gothonweb/planisphere.py:

laser_weapon_armory.update_paths({
    '0132': the_bridge,
    '*': generic_death
})

Currently, I explicitly pass in the catchall in app.py:

if room.attempts is None:
    next_room = room.go(action)
else:
    if room.attempts == 0:
        next_room = room.go('*')
    else: 
        next_room = room.go(action)
        room.attempts -= 1

Thank you in advance.

Honestly I think you’d need a fairly major redesign to get around that, so I’d say just keep moving on.