From ff10546152250f52070c43d577890ef37d8075de Mon Sep 17 00:00:00 2001
From: Kay Kurokawa <kay@lbry.io>
Date: Wed, 30 Nov 2016 19:13:41 -0500
Subject: [PATCH] Missing the return of a defer.fail when claim fails, changing
 to raise Exception

---
 lbrynet/core/Wallet.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lbrynet/core/Wallet.py b/lbrynet/core/Wallet.py
index ad7ee6a81..b07f5e9ee 100644
--- a/lbrynet/core/Wallet.py
+++ b/lbrynet/core/Wallet.py
@@ -480,7 +480,7 @@ class Wallet(object):
         def _save_metadata(claim_out, metadata):
             if not claim_out['success']:
                 msg = 'Claim to name {} failed: {}'.format(name, claim_out['reason'])
-                defer.fail(Exception(msg))
+                raise Exception(msg)
             claim_outpoint = ClaimOutpoint(claim_out['txid'], claim_out['nout'])
             log.info("Saving metadata for claim %s %d" % (claim_outpoint['txid'], claim_outpoint['nout']))
             d = self._save_name_metadata(name, claim_outpoint, metadata['sources']['lbry_sd_hash'])