URI: 
       tMerge pull request #297 from vrde/fix-remove-eval - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 200f3683d9982af75858d8659d8dd4c321aa7217
   DIR parent 01349f6528685ce5017cf73053082bc5649e77da
  HTML 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:
         M gui/gui_classic/main_window.py      |      11 ++++++-----
       
       1 file changed, 6 insertions(+), 5 deletions(-)
       ---
   DIR diff --git a/gui/gui_classic/main_window.py b/gui/gui_classic/main_window.py
       t@@ -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)