From f5c988728165581fab7331a706423c1c0d809688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Mon, 23 Jun 2008 22:12:53 +0200 Subject: Added plugin, which simply throws an exception --- plugins/exception.xml | 13 +++++++++++++ portato/plugins/exception.py | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 plugins/exception.xml create mode 100644 portato/plugins/exception.py diff --git a/plugins/exception.xml b/plugins/exception.xml new file mode 100644 index 0000000..385e743 --- /dev/null +++ b/plugins/exception.xml @@ -0,0 +1,13 @@ + + + + René 'Necoro' Neumann + Exception Thrower + + portato.plugins.exception + + + Throw exception + + + diff --git a/portato/plugins/exception.py b/portato/plugins/exception.py new file mode 100644 index 0000000..64bdb77 --- /dev/null +++ b/portato/plugins/exception.py @@ -0,0 +1,2 @@ +def throw (*args, **kwargs): + raise Exception, "As requested, Sir!" -- cgit v1.2.3