Преглед изворни кода

Catch plugin exceptions at App.run() as well

Alois Mahdal пре 10 година
родитељ
комит
4c0ac74b59
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4
    1
      include/sardine.py

+ 4
- 1
include/sardine.py Прегледај датотеку

@@ -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)