From tashi-commits-return-609-apmail-incubator-tashi-commits-archive=incubator.apache.org@incubator.apache.org Mon Aug 6 23:38:08 2012 Return-Path: X-Original-To: apmail-incubator-tashi-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-tashi-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8D40ADE78 for ; Mon, 6 Aug 2012 23:38:08 +0000 (UTC) Received: (qmail 92724 invoked by uid 500); 6 Aug 2012 23:38:08 -0000 Delivered-To: apmail-incubator-tashi-commits-archive@incubator.apache.org Received: (qmail 92699 invoked by uid 500); 6 Aug 2012 23:38:08 -0000 Mailing-List: contact tashi-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: tashi-dev@incubator.apache.org Delivered-To: mailing list tashi-commits@incubator.apache.org Received: (qmail 92690 invoked by uid 99); 6 Aug 2012 23:38:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2012 23:38:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_FRT_STOCK2 X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2012 23:38:07 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id EEE0123889D5; Mon, 6 Aug 2012 23:37:23 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1370061 - /incubator/tashi/trunk/src/tashi/util.py Date: Mon, 06 Aug 2012 23:37:23 -0000 To: tashi-commits@incubator.apache.org From: stroucki@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120806233723.EEE0123889D5@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: stroucki Date: Mon Aug 6 23:37:23 2012 New Revision: 1370061 URL: http://svn.apache.org/viewvc?rev=1370061&view=rev Log: util.py: if an exception is returned from the remote side, raise it locally. This helps in client commands like createMany. Modified: incubator/tashi/trunk/src/tashi/util.py Modified: incubator/tashi/trunk/src/tashi/util.py URL: http://svn.apache.org/viewvc/incubator/tashi/trunk/src/tashi/util.py?rev=1370061&r1=1370060&r2=1370061&view=diff ============================================================================== --- incubator/tashi/trunk/src/tashi/util.py (original) +++ incubator/tashi/trunk/src/tashi/util.py Mon Aug 6 23:37:23 2012 @@ -349,6 +349,11 @@ class Connection: self.connection = None raise + # if we get a remote exception, raise it locally + if (type(returns) is Exception) or \ + (type(returns) is TashiException): + raise returns + return returns def __getattr__(self, name):