trivial: use logger.exception instead of traceback.print_exc

This commit is contained in:
SomberNight 2019-11-21 17:55:00 +01:00
parent 6f246a83b3
commit 03cc63205f
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -21,6 +21,7 @@ from kivy.uix.image import Image
from kivy.lang import Builder
from kivy.factory import Factory
from kivy.utils import platform
from kivy.logger import Logger
from electrum.util import profiler, parse_URI, format_time, InvalidPassword, NotEnoughFunds, Fiat
from electrum.util import PR_TYPE_ONCHAIN, PR_TYPE_LN
@ -360,7 +361,7 @@ class SendScreen(CScreen):
self.app.show_error(_("Not enough funds"))
return
except Exception as e:
traceback.print_exc(file=sys.stdout)
Logger.exception('')
self.app.show_error(repr(e))
return
if rbf: