Skip to content

Commit

Permalink
remove unnecessary try except
Browse files Browse the repository at this point in the history
  • Loading branch information
bolliger32 committed Jun 17, 2019
1 parent 36f1cca commit 00d322a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/python/clawutil/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 00d322a

Please sign in to comment.