[CalendarServer-changes] [10318] CalDAVClientLibrary/trunk/caldavclientlibrary/browser/commands/cat. py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Jan 23 16:53:56 PST 2013
Revision: 10318
http://trac.calendarserver.org//changeset/10318
Author: cdaboo at apple.com
Date: 2013-01-23 16:53:56 -0800 (Wed, 23 Jan 2013)
Log Message:
-----------
Handle errors properly with cat command.
Modified Paths:
--------------
CalDAVClientLibrary/trunk/caldavclientlibrary/browser/commands/cat.py
Modified: CalDAVClientLibrary/trunk/caldavclientlibrary/browser/commands/cat.py
===================================================================
--- CalDAVClientLibrary/trunk/caldavclientlibrary/browser/commands/cat.py 2013-01-24 00:08:53 UTC (rev 10317)
+++ CalDAVClientLibrary/trunk/caldavclientlibrary/browser/commands/cat.py 2013-01-24 00:53:56 UTC (rev 10318)
@@ -40,8 +40,10 @@
path = os.path.join(self.shell.wd, path)
resource = URL(url=path)
- data, _ignore_etag = self.shell.account.session.readData(resource)
- print data
+ result = self.shell.account.session.readData(resource)
+ if result:
+ data, _ignore_etag = result
+ print data
return True
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130123/d9f6172f/attachment.html>
More information about the calendarserver-changes
mailing list