diff --git a/kippo/core/ssh.py b/kippo/core/ssh.py index 4479eb26..072d204b 100644 --- a/kippo/core/ssh.py +++ b/kippo/core/ssh.py @@ -155,7 +155,7 @@ class HoneyPotRealm: return interfaces[0], \ HoneyPotAvatar(avatarId, self.env), lambda: None else: - raise Exception, "No supported interfaces found." + raise Exception("No supported interfaces found.") class HoneyPotTransport(sshserver.KippoSSHServerTransport): """ @@ -307,8 +307,8 @@ class HoneyPotAvatar(avatar.ConchUser): cfg.get('honeypot', 'exec_enabled').lower() not in \ ('yes', 'true', 'on'): log.msg( 'Exec disabled. Not executing command: "%s"' % cmd ) - raise exceptions.NotEnabledException, \ - 'exec_enabled not enabled in configuration file!' + raise exceptions.NotEnabledException( + 'exec_enabled not enabled in configuration file!') return log.msg( 'exec command: "%s"' % cmd )