diff options
author | necoro <> | 2007-07-21 22:13:06 +0000 |
---|---|---|
committer | necoro <> | 2007-07-21 22:13:06 +0000 |
commit | 44a726cd69e3e0d5c50890946b366c441a575a37 (patch) | |
tree | 26580405641d1f4f0e66acc859fad44ed3a54bef /portato/plugin.py | |
parent | 6d3b88dbe7a72377db9c853781593287f9cbcfa5 (diff) | |
download | portato-44a726cd69e3e0d5c50890946b366c441a575a37.tar.gz portato-44a726cd69e3e0d5c50890946b366c441a575a37.tar.bz2 portato-44a726cd69e3e0d5c50890946b366c441a575a37.zip |
added logviewers
Diffstat (limited to '')
-rw-r--r-- | portato/plugin.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/portato/plugin.py b/portato/plugin.py index 1aa521a..ea11c3a 100644 --- a/portato/plugin.py +++ b/portato/plugin.py @@ -349,8 +349,13 @@ class PluginQueue: for p in plugins: - if not schema.validate(etree.parse(p)): - error("Loading plugin '%s' failed. Plugin does not comply to schema.", p) + try: + schema.assertValid(etree.parse(p)) + except etree.XMLSyntaxError: + error("Loading plugin '%s' failed. Invalid XML syntax.", p) + continue + except etree.DocumentInvalid: + error("Loading plugin '%s' failed. Plugin does not comply with schema.", p) continue doc = parse(p) |