Skip to content
Permalink
Browse files

raise RuntimeError() instead of str

  • Loading branch information
htnhan committed Mar 24, 2020
1 parent 85da811 commit d362f546a9c01c7e8464f25c02edde82cd846017
Showing with 1 addition and 1 deletion.
  1. +1 −1 fakenet/listeners/RawListener.py
@@ -178,7 +178,7 @@ def checkSetting(d, name, value):
if self.server.custom_response:
msg = ('Only one %s Custom Response can be configured '
'at a time' % (proto))
raise(msg)
raise RuntimeError(msg)

self.server.custom_response = (
RawCustomResponse(proto, section, entries, configdir))

0 comments on commit d362f54

Please sign in to comment.
You can’t perform that action at this time.