Revision: 12264
http://sourceforge.net/p/skim-app/code/12264
Author: hofman
Date: 2021-04-06 13:43:25 +0000 (Tue, 06 Apr 2021)
Log Message:
-----------
Wrap cocoa object in str for error message
Modified Paths:
--------------
trunk/build_skim.py
Modified: trunk/build_skim.py
===================================================================
--- trunk/build_skim.py 2021-04-06 09:54:44 UTC (rev 12263)
+++ trunk/build_skim.py 2021-04-06 13:43:25 UTC (rev 12264)
@@ -391,11 +391,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)
@@ -415,7 +415,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.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit