From 00d322a3b6a35c5db0336c64018bbda07b139f13 Mon Sep 17 00:00:00 2001 From: bolliger32 Date: Mon, 17 Jun 2019 06:15:50 +0000 Subject: [PATCH] remove unnecessary try except --- src/python/clawutil/data.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/python/clawutil/data.py b/src/python/clawutil/data.py index edb18fd..276a0df 100644 --- a/src/python/clawutil/data.py +++ b/src/python/clawutil/data.py @@ -528,10 +528,7 @@ def write(self, out_dir = ''): if isinstance(data_object, UserData): fname = data_object.__fname__ else: - try: - fname = signature(data_object.write).parameters['out_file'].default - except: - raise ValueError(type(data_object)) + fname = signature(data_object.write).parameters['out_file'].default fpath = os.path.join(out_dir,fname) if isinstance(data_object, amrclaw.GaugeData): data_object.write(self.clawdata.num_eqn, self.clawdata.num_aux, out_file=fpath)