Skip to content

Commit

Permalink
Merge pull request #235 from cbanek/flake8-error
Browse files Browse the repository at this point in the history
Fix flake8 error
  • Loading branch information
cbanek authored Jun 26, 2020
2 parents cb916e9 + f67cc9c commit e87e053
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pyvo/dal/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,13 +335,13 @@ def _validate_pos(self, pos):
self._validate_ra(ra_min)
self._validate_ra(ra_max)
if ra_max.to(u.deg) < ra_min.to(u.deg):
raise ValueError('min > max in ra range: '.format(ra_min,
ra_max))
raise ValueError('min > max in ra range: {} > {}'.
format(ra_min, ra_max))
self._validate_dec(dec_min)
self._validate_dec(dec_max)
if dec_max.to(u.deg) < dec_min.to(u.deg):
raise ValueError('min > max in dec range: '.format(dec_min,
dec_max))
raise ValueError('min > max in dec range: {} > {}'.
format(dec_min, dec_max))
else:
for i, m in enumerate(pos):
if i % 2:
Expand Down Expand Up @@ -387,7 +387,7 @@ def get_dal_format(self, val):
low = val[0]
high = val[1]
else:
raise ValueError('Too few/many values in interval attribute: '.
raise ValueError('Too few/many values in interval attribute: {}'.
format(val))
else:
high = low = val
Expand Down Expand Up @@ -422,7 +422,7 @@ def get_dal_format(self, val):
min_time = val[0]
max_time = val[1]
else:
raise ValueError('Too few/many members in time attribute: '.
raise ValueError('Too few/many members in time attribute: {}'.
format(val))
else:
max_time = min_time = val
Expand Down

0 comments on commit e87e053

Please sign in to comment.