1
0
Fork 0

linting W1201, W1202

fix logging strings to %s format

Signed-off-by: Corey Shields <cshields@gmail.com>
merge-requests/399/head
Corey Shields 2019-07-13 18:15:13 -04:00
parent 6bc64e9217
commit adfc08bb79
3 changed files with 2 additions and 4 deletions

View File

@ -19,8 +19,6 @@ disable=
R0915,
R1705,
W0511,
W1201,
W1202,
W5102,
W5103,
W5104,

View File

@ -90,7 +90,7 @@ def update_all_tle():
# Epoch of new TLE is larger then the TLE already in the db
continue
except ValueError:
LOGGER.error('ERROR: TLE malformed for ' + norad_id)
LOGGER.error('ERROR: TLE malformed for %s', norad_id)
continue
satellite.tle_source = source

View File

@ -191,7 +191,7 @@ def transmitter_suggestion(request):
return redirect(reverse('satellite', kwargs={'norad': transmitter.satellite.norad_cat_id}))
else:
LOGGER.error(
'Suggestion form was not valid {0}'.format(transmitter_form.errors),
'Suggestion form was not valid %s', format(transmitter_form.errors),
exc_info=True,
extra={
'form': transmitter_form.errors,