Uploaded image for project: 'Hue (READ ONLY)'
  1. Hue (READ ONLY)
  2. HUE-2391

Creating beeswax install example may ignore error creating sample user

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.8.0
    • Fix Version/s: 3.8.0
    • Component/s: con.hive
    • Labels:
      None

      Description

      When installing the beeswax examples, it's possible for one exception to shadow another exception here.

        ...
        def handle_noargs(self, **options):
          exception = None
      
          # 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'])
          except Exception, ex:
            exception = ex
      
          Document.objects.sync()
      
          if exception is not None:
            raise exception
          ...
      

        Attachments

          Activity

            People

            • Assignee:
              krish Sai K Chirravuri
              Reporter:
              erickt Erick Tryzelaar
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: