Revision: 25710 http://sourceforge.net/p/bibdesk/svn/25710 Author: hofman Date: 2021-04-06 13:44:04 +0000 (Tue, 06 Apr 2021) Log Message: ----------- Wrap cocoa object in str for error message
Modified Paths: -------------- trunk/bibdesk/build_release.py Modified: trunk/bibdesk/build_release.py =================================================================== --- trunk/bibdesk/build_release.py 2021-04-06 09:55:47 UTC (rev 25709) +++ trunk/bibdesk/build_release.py 2021-04-06 13:44:04 UTC (rev 25710) @@ -392,11 +392,11 @@ # xml doc from the current appcast (oldDoc, error) = NSXMLDocument.alloc().initWithContentsOfURL_options_error_(appcastURL, NSXMLNodePreserveCDATA, None) - assert oldDoc is not None, error + assert oldDoc is not None, str(error) # xml doc from the new appcast string (newDoc, error) = NSXMLDocument.alloc().initWithXMLString_options_error_(newItemString, NSXMLNodePreserveCDATA, None) - assert newDoc is not None, error + assert newDoc is not None, str(error) # get an arry of the current item titles (oldTitles, error) = oldDoc.nodesForXPath_error_("//item/title", None) @@ -416,7 +416,7 @@ # now get the new node (newNodes, error) = newDoc.nodesForXPath_error_("//item", None) - assert newNodes is not None, error + assert newNodes is not None, str(error) # insert a copy of the new node parentChannel.insertChild_atIndex_(newNodes.lastObject().copy(), 0) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Bibdesk-commit mailing list Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit