浏览代码

HUE-2391 [beeswax] install example exception handling correction

krish 11 年之前
父节点
当前提交
2c17370744
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1 5
      apps/beeswax/src/beeswax/management/commands/beeswax_install_examples.py

+ 1 - 5
apps/beeswax/src/beeswax/management/commands/beeswax_install_examples.py

@@ -52,12 +52,8 @@ class Command(NoArgsCommand):
     # Documents will belong to this user but we run the install as the current user
     try:
       sample_user = install_sample_user()
-      self._install_tables(options['user'], options['app_name'])
-    except Exception, ex:
-      exception = ex
-
-    try:
       self._install_queries(sample_user, options['app_name'])
+      self._install_tables(options['user'], options['app_name'])
     except Exception, ex:
       exception = ex