URI: 
       tMerge pull request #430 from wozz/POS - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 0bb92a59b2e20b0507438be3618de141c6130a3b
   DIR parent c71af98cbc6321e7db745768709261c0bec8a04a
  HTML Author: ThomasV <thomasv1@gmx.de>
       Date:   Sat, 16 Nov 2013 07:12:38 -0800
       
       Merge pull request #430 from wozz/POS
       
       point of sale plugin set amount to None if the exchanger fails
       Diffstat:
         M plugins/pointofsale.py              |       5 ++++-
       
       1 file changed, 4 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/plugins/pointofsale.py b/plugins/pointofsale.py
       t@@ -65,7 +65,10 @@ class QR_Window(QWidget):
                amount_text = ''
                if amount:
                    if currency:
       -                self.amount = Decimal(amount) / self.exchanger.exchange(1, currency) if currency else amount
       +                try:
       +                    self.amount = Decimal(amount) / self.exchanger.exchange(1, currency) if currency else amount
       +                except Exception:
       +                    self.amount = None
                    else:
                        self.amount = Decimal(amount)
                    self.amount = self.amount.quantize(Decimal('1.0000'))