different log if the link isn't in db
parent
1890dbacac
commit
36f7a0c9c9
|
@ -19,7 +19,7 @@ class Command(BaseCommand):
|
||||||
link = Link.objects.get(url=url)
|
link = Link.objects.get(url=url)
|
||||||
check = check_link(link)
|
check = check_link(link)
|
||||||
self.stdout.write(
|
self.stdout.write(
|
||||||
f'checked {url}: type is {check.content_type}, code is {check.return_code}')
|
f'checked link {link.id} {url}: type is {check.content_type}, code is {check.return_code}')
|
||||||
except Link.DoesNotExist:
|
except Link.DoesNotExist:
|
||||||
code, ctype = type_for_url(url)
|
code, ctype = type_for_url(url)
|
||||||
self.stdout.write(
|
self.stdout.write(
|
||||||
|
|
Loading…
Reference in New Issue