Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-13071

Drive: fix "UnboundLocalError: local variable 'local_folder' referenced before assignment" when offline state is notified

    XMLWordPrintable

    Details

      Description

      Cf. Application.notify_offline:

      if info.online:
          local_folder = server_binding.local_folder
          # Mark binding as offline and update UI
          log.debug('Switching to offline mode (reason: %s) for: %s',
                    reason, server_binding.local_folder)
          info.online = False
          self.update_running_icon()
          self.communicator.menu.emit()
      
      if code == 401:
          log.debug('Detected invalid credentials for: %s', local_folder)
          self.communicator.invalid_credentials.emit(local_folder)
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: