← Back to team overview

desktop-packages team mailing list archive

[Bug 854187] [NEW] AttributeError: 'JSONDecodeError' object has no attribute 'body'

 

Public bug reported:

Software Center version 4.1.23.2, Ubuntu Oneiric

The inimitable davmor2 reports that he has encountered the following
exception during his testing:

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/usr/share/software-center/submit_review.py", line 176, in run
    self._wait_for_commands()
  File "/usr/share/software-center/submit_review.py", line 186, in _wait_for_commands
    self._submit_reviews_if_pending()
  File "/usr/share/software-center/submit_review.py", line 348, in _submit_reviews_if_pending
    err_str = self._get_error_messages(e)
  File "/usr/share/software-center/submit_review.py", line 355, in _get_error_messages
    logging.warn(e.body)
AttributeError: 'JSONDecodeError' object has no attribute 'body'

** Affects: software-center (Ubuntu)
     Importance: Low
     Assignee: Gary Lasker (gary-lasker)
         Status: In Progress

** Changed in: software-center (Ubuntu)
       Status: New => In Progress

** Changed in: software-center (Ubuntu)
   Importance: Undecided => Low

** Changed in: software-center (Ubuntu)
     Assignee: (unassigned) => Gary Lasker (gary-lasker)

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to software-center in Ubuntu.
https://bugs.launchpad.net/bugs/854187

Title:
  AttributeError: 'JSONDecodeError' object has no attribute 'body'

Status in “software-center” package in Ubuntu:
  In Progress

Bug description:
  Software Center version 4.1.23.2, Ubuntu Oneiric

  The inimitable davmor2 reports that he has encountered the following
  exception during his testing:

  Exception in thread Thread-2:
  Traceback (most recent call last):
    File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
      self.run()
    File "/usr/share/software-center/submit_review.py", line 176, in run
      self._wait_for_commands()
    File "/usr/share/software-center/submit_review.py", line 186, in _wait_for_commands
      self._submit_reviews_if_pending()
    File "/usr/share/software-center/submit_review.py", line 348, in _submit_reviews_if_pending
      err_str = self._get_error_messages(e)
    File "/usr/share/software-center/submit_review.py", line 355, in _get_error_messages
      logging.warn(e.body)
  AttributeError: 'JSONDecodeError' object has no attribute 'body'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/854187/+subscriptions


Follow ups

References