Present TypeError to remote client in Session
This commit is contained in:
parent
50d465a738
commit
00c5940d9d
1 changed files with 1 additions and 2 deletions
|
@ -849,8 +849,7 @@ class Session(Connection):
|
||||||
try:
|
try:
|
||||||
return fn(self, *args)
|
return fn(self, *args)
|
||||||
except TypeError as e:
|
except TypeError as e:
|
||||||
traceback.print_exception(e)
|
return self.respond(ResponseCode.NNTP_SYNTAX_ERROR, str(e))
|
||||||
return self.respond(ResponseCode.NNTP_SYNTAX_ERROR)
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
traceback.print_exception(e)
|
traceback.print_exception(e)
|
||||||
return self.respond(ResponseCode.NNTP_COMMAND_UNAVAILABLE)
|
return self.respond(ResponseCode.NNTP_COMMAND_UNAVAILABLE)
|
||||||
|
|
Loading…
Add table
Reference in a new issue