different log if the link isn't in db

main
eric 2024-03-13 14:56:07 -04:00
parent 1890dbacac
commit 36f7a0c9c9
1 changed files with 1 additions and 1 deletions

View File

@ -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(