Skip to content

Commit e87e053

Browse files
authored
Merge pull request #235 from cbanek/flake8-error
Fix flake8 error
2 parents cb916e9 + f67cc9c commit e87e053

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎pyvo/dal/params.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -335,13 +335,13 @@ def _validate_pos(self, pos):
335335
self._validate_ra(ra_min)
336336
self._validate_ra(ra_max)
337337
if ra_max.to(u.deg) < ra_min.to(u.deg):
338-
raise ValueError('min > max in ra range: '.format(ra_min,
339-
ra_max))
338+
raise ValueError('min > max in ra range: {} > {}'.
339+
format(ra_min, ra_max))
340340
self._validate_dec(dec_min)
341341
self._validate_dec(dec_max)
342342
if dec_max.to(u.deg) < dec_min.to(u.deg):
343-
raise ValueError('min > max in dec range: '.format(dec_min,
344-
dec_max))
343+
raise ValueError('min > max in dec range: {} > {}'.
344+
format(dec_min, dec_max))
345345
else:
346346
for i, m in enumerate(pos):
347347
if i % 2:
@@ -387,7 +387,7 @@ def get_dal_format(self, val):
387387
low = val[0]
388388
high = val[1]
389389
else:
390-
raise ValueError('Too few/many values in interval attribute: '.
390+
raise ValueError('Too few/many values in interval attribute: {}'.
391391
format(val))
392392
else:
393393
high = low = val
@@ -422,7 +422,7 @@ def get_dal_format(self, val):
422422
min_time = val[0]
423423
max_time = val[1]
424424
else:
425-
raise ValueError('Too few/many members in time attribute: '.
425+
raise ValueError('Too few/many members in time attribute: {}'.
426426
format(val))
427427
else:
428428
max_time = min_time = val

0 commit comments

Comments
 (0)