mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-16 12:33:41 +02:00
refactor: bare excepts removed.
This commit is contained in:
parent
7e0308b155
commit
3fd63f8b67
4 changed files with 6 additions and 6 deletions
|
@ -536,7 +536,7 @@ class Corr:
|
|||
y_min = min([(x[0].value - x[0].dvalue) for x in self.content[x_range[0]: x_range[1] + 1] if (x is not None) and x[0].dvalue < 2 * np.abs(x[0].value)])
|
||||
y_max = max([(x[0].value + x[0].dvalue) for x in self.content[x_range[0]: x_range[1] + 1] if (x is not None) and x[0].dvalue < 2 * np.abs(x[0].value)])
|
||||
ax1.set_ylim([y_min - 0.1 * (y_max - y_min), y_max + 0.1 * (y_max - y_min)])
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
else:
|
||||
ax1.set_ylim(y_range)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue