URI: 
       tfix: test short_channel_id before removing from channel_db - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit d9813540ace90a1650feef797ee8a607b152e086
   DIR parent 108a986ef0e5e017b8ba100c767c7270d9fcef98
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Sat,  2 Feb 2019 13:49:04 +0100
       
       fix: test short_channel_id before removing from channel_db
       
       Diffstat:
         M electrum/lnworker.py                |       3 ++-
       
       1 file changed, 2 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/electrum/lnworker.py b/electrum/lnworker.py
       t@@ -320,7 +320,8 @@ class LNWorker(PrintError):
                    self.on_channels_updated()
                self.network.trigger_callback('channel', chan)
                # remove from channel_db
       -        self.channel_db.remove_channel(chan.short_channel_id)
       +        if chan.short_channel_id is not None:
       +            self.channel_db.remove_channel(chan.short_channel_id)
                # detect who closed
                if closing_txid == chan.local_commitment.txid():
                    self.print_error('we force closed', funding_outpoint)