rlazarus / MUSS

Multi-User Shared Setting, a modern-day reimplementation of the multiuser text game.
8 stars 1 forks source link

Permissions errors on exits aren't caught unless "go" is invoked explicitly. #128

Closed relsqui closed 9 years ago

relsqui commented 9 years ago

When the "go" command is used, the exception is caught here: https://github.com/rlazarus/MUSS/blob/master/muss/handler.py#L178

When it's not, the exit.go method is invoked here, with no user error catching: https://github.com/rlazarus/MUSS/blob/master/muss/handler.py#L113

Easiest fix is probably to set Go() as the command at L113 rather than simply calling it there. It'll skip the except blocks and wind up right where it's needed.