From 16809c7fe7ace165174ec29206fdcc3c3d209338 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Tue, 30 Jun 2015 21:24:18 +0200 Subject: [PATCH] Call GApplicationPar::value() method for any non-string and non-filename parameter type. --- AUTHORS | 2 +- pyext/GApplication.i | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/AUTHORS b/AUTHORS index 5f86585..94d0c2b 100644 --- a/AUTHORS +++ b/AUTHORS @@ -8,8 +8,8 @@ Tarek Hassan (thassan@ifae.es) Nathan Kelley-Koskins (nathan.kelley-hoskins@desy.de) Juergen Knoedlseder (jurgen.knodlseder@irap.omp.eu) Karl Kosack (karl.kosack@cea.fr) -Chia-Chun Lu (Chia-Chun.Lu@mpi-hd.mpg.de) Thierry Louge (thierry.louge@irap.omp.eu) +Chia-Chun Lu (Chia-Chun.Lu@mpi-hd.mpg.de) Pierrick Martin (pierrick.martin@irap.omp.eu) Michael Mayer (michael.mayer@physik.hu-berlin.de) Ellis Owen (Ellis.Owen@mpi-hd.mpg.de) diff --git a/pyext/GApplication.i b/pyext/GApplication.i index 383eb7e..1a6986e 100644 --- a/pyext/GApplication.i +++ b/pyext/GApplication.i @@ -120,12 +120,8 @@ public: par.filename(val); } else { - std::string msg = "Attempt to set \""+par.type()+ - "\" parameter \""+name+"\" with string " - "value."; - throw GException::invalid_argument("__setitem__(std::string, int)", - msg); - } + par.value(val); + } return; } GApplication copy() { -- libgit2 0.21.4