Thank you for your bug report, indeed that warning is in Noble, it was
fixed upstream in https://github.com/christgau/wsdd/commit/9c4a2c7e and
the fix is in 0.8 in Oracular

** Changed in: wsdd (Ubuntu)
   Importance: Undecided => Low

** Changed in: wsdd (Ubuntu)
       Status: New => Fix Released

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

Title:
  wsdd:467: DeprecationWarning: Testing an element's truth value will
  raise an exception in future versions

Status in wsdd package in Ubuntu:
  Fix Released

Bug description:
  Ubuntu 24.04.1 LTS,  wsdd package 2:0.7.1-5

  sudo systemctl status wsdd   prints the following warning:

  Oct 24 16:18:15 lxjima wsdd[85648]: /usr/bin/wsdd:467: DeprecationWarning: 
Testing an element's truth value will raise an exception in future versions
  Use specific 'len(elem)' or 'elem is not None' test instead.>
  Oct 24 16:18:15 lxjima wsdd[85648]:   if request_header:

   Basicially it is saying this script will break after a future Phython
  update.

  --------------
  Here is the code, starting at line 467:

   if request_header:
              req_msg_id = request_header.find('./wsa:MessageID', namespaces)
              if req_msg_id is not None:
                  relates_to = ElementTree.SubElement(header, 'wsa:RelatesTo')
                  relates_to.text = req_msg_id.text

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/wsdd/+bug/2085581/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to