Skip to content

Commit 831698a

Browse files
committed
pep8 compliance
1 parent 55faf8a commit 831698a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pvlib/modelchain.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def __repr__(self):
253253
def _head(obj):
254254
try:
255255
return obj[:3]
256-
except:
256+
except Exception:
257257
return obj
258258

259259
if type(self.dc) is tuple:
@@ -269,7 +269,7 @@ def _head(obj):
269269
'\n')
270270
lines = []
271271
for attr in mc_attrs:
272-
if not (attr.startswith('_') or attr=='times'):
272+
if not (attr.startswith('_') or attr == 'times'):
273273
lines.append(f' {attr}: ' + _mcr_repr(getattr(self, attr)))
274274
desc4 = '\n'.join(lines)
275275
return (desc1 + desc2 + desc3 + desc4)
@@ -392,7 +392,6 @@ def __init__(self, system, location,
392392

393393
self.results = ModelChainResult()
394394

395-
396395
@classmethod
397396
def with_pvwatts(cls, system, location,
398397
clearsky_model='ineichen',

0 commit comments

Comments
 (0)