Browse Source

Catch plugin exceptions at App.run() as well

Alois Mahdal 10 years ago
parent
commit
4c0ac74b59
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      include/sardine.py

+ 4
- 1
include/sardine.py View File

@@ -119,4 +119,7 @@ class App:
119 119
         sys.exit(rv)
120 120
 
121 121
     def run(self):
122
-        print self.subcommand.get_output()
122
+        try:
123
+            print self.subcommand.get_output()
124
+        except SardinePluginError as e:
125
+            self.die(e, 10)