Browse Source

HUE-2391 [beeswax] install example exception handling correction

krish 11 năm trước cách đây
mục cha
commit
2c17370744

+ 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