electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 200f3683d9982af75858d8659d8dd4c321aa7217
parent 01349f6528685ce5017cf73053082bc5649e77da
Author: ThomasV <thomasv1@gmx.de>
Date:   Tue, 17 Sep 2013 10:53:34 -0700

Merge pull request #297 from vrde/fix-remove-eval

Remove eval from run_hook
Diffstat:
Mgui/gui_classic/main_window.py | 11++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/gui/gui_classic/main_window.py b/gui/gui_classic/main_window.py @@ -466,12 +466,13 @@ class ElectrumWindow(QMainWindow): for p in self.plugins: if not p.is_enabled(): continue + + f = getattr(p, name, None) + if not callable(f): + return + try: - f = eval('p.'+name) - except: - continue - try: - apply(f, args) + f(*args) except: print_error("Plugin error") traceback.print_exc(file=sys.stdout)