diff --git a/kippo/commands/fs.py b/kippo/commands/fs.py index fcdd675..0cec4b7 100644 --- a/kippo/commands/fs.py +++ b/kippo/commands/fs.py @@ -56,7 +56,7 @@ class command_rm(HoneyPotCommand): path = self.fs.resolve_path(f, self.honeypot.cwd) try: dir = self.fs.get_path('/'.join(path.split('/')[:-1])) - except IndexError: + except IndexError, FileNotFound: self.writeln( 'rm: cannot remove `%s\': No such file or directory' % f) continue