Skip to content

Commit

Permalink
Fix flake8 bare exception warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
r-owen committed Mar 22, 2018
1 parent bce7894 commit f2870b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/lsst/obs/sdss/convertasTrans.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,13 @@ def convertasTrans(infile, filt, camcol, field, stepSize=50, doValidate=False):

try:
cIdx = cList.index(camcol)
except:
except Exception:
print("Cannot extract data for camcol %s" % (camcol))
return None

try:
fIdx = fList.index(filt)
except:
except Exception:
print("Cannot extract data for filter %s" % (filt))
return None

Expand All @@ -230,7 +230,7 @@ def convertasTrans(infile, filt, camcol, field, stepSize=50, doValidate=False):
fields = edat.field('field').tolist()
try:
fIdx = fields.index(field)
except:
except Exception:
print("Cannot extract data for field %d" % (field))
return None

Expand Down

0 comments on commit f2870b9

Please sign in to comment.