Skip to content

Commit

Permalink
raise RuntimeError() instead of str
Browse files Browse the repository at this point in the history
  • Loading branch information
htnhan committed Mar 24, 2020
1 parent 85da811 commit d362f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fakenet/listeners/RawListener.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit d362f54

Please sign in to comment.