diff options
| author | shivesh <s.p.mandalia@qmul.ac.uk> | 2019-04-13 14:17:02 -0500 |
|---|---|---|
| committer | shivesh <s.p.mandalia@qmul.ac.uk> | 2019-04-13 14:17:02 -0500 |
| commit | 0c2c1c6aeaa7fa1acc1aa9c7bc34a1853fb6d522 (patch) | |
| tree | 028cdc45d1c0c66e56d02bb4566ba90933ada4ea /utils/param.py | |
| parent | bb8f16faaaedae18e82049085c00920d3fa3a5f4 (diff) | |
| download | GolemFlavor-0c2c1c6aeaa7fa1acc1aa9c7bc34a1853fb6d522.tar.gz GolemFlavor-0c2c1c6aeaa7fa1acc1aa9c7bc34a1853fb6d522.zip | |
Sat 13 Apr 14:17:02 CDT 2019
Diffstat (limited to 'utils/param.py')
| -rw-r--r-- | utils/param.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/utils/param.py b/utils/param.py index 558018e..2378758 100644 --- a/utils/param.py +++ b/utils/param.py @@ -125,14 +125,7 @@ class ParamSet(Sequence): return self._by_name[i] def __getattr__(self, attr): - try: - return super(ParamSet, self).__getattribute__(attr) - except AttributeError: - t, v, tb = sys.exc_info() - try: - return self[attr] - except KeyError: - raise t, v, tb + return super(ParamSet, self).__getattribute__(attr) def __iter__(self): return iter(self._params) |
