mirror of
https://github.com/JoseDeFreitas/awesome-youtubers.git
synced 2025-01-03 11:30:49 -05:00
Add line in error message
This commit is contained in:
parent
5cd98691da
commit
91e7f28ac1
@ -42,7 +42,7 @@ class ContentAbout():
|
||||
with open(file_readme, 'w') as write_readme:
|
||||
write_readme.writelines(content)
|
||||
|
||||
self.result = "🔴 -1: backslash.\nFixed."
|
||||
self.result = f"🔴 {line}: backslash.\nFixed."
|
||||
|
||||
return self.result
|
||||
|
||||
|
@ -46,7 +46,7 @@ class FeaturedPlaylists():
|
||||
with open(file_readme, 'w') as write_readme:
|
||||
write_readme.writelines(content)
|
||||
|
||||
self.result = "🔴 -1: backslash | line break.\nFixed."
|
||||
self.result = f"🔴 {line}: backslash | line break.\nFixed."
|
||||
elif last != "\\" and "<br>" in content[line+1]:
|
||||
if last == " ":
|
||||
content[line] = f"{value[:-1]}\\\n"
|
||||
@ -56,14 +56,14 @@ class FeaturedPlaylists():
|
||||
with open(file_readme, 'w') as write_readme:
|
||||
write_readme.writelines(content)
|
||||
|
||||
self.result = "🔴 -1: backslash.\nFixed."
|
||||
self.result = f"🔴 {line}: backslash.\nFixed."
|
||||
elif last == "\\" and "<br>" not in content[line+1]:
|
||||
content[line+1] = "<br>\n\n"
|
||||
|
||||
with open(file_readme, 'w') as write_readme:
|
||||
write_readme.writelines(content)
|
||||
|
||||
self.result = "🔴 -1: line break.\nFixed."
|
||||
self.result = f"🔴 {line}: line break.\nFixed."
|
||||
|
||||
return self.result
|
||||
|
||||
|
@ -43,7 +43,7 @@ class YoutubersNames():
|
||||
with open(file_readme, 'w') as write_readme:
|
||||
write_readme.writelines(content)
|
||||
|
||||
self.result = "🔴 -1: backslash.\nFixed."
|
||||
self.result = f"🔴 {line}: backslash.\nFixed."
|
||||
|
||||
return self.result
|
||||
|
||||
@ -56,10 +56,10 @@ class YoutubersNames():
|
||||
for line, value in enumerate(content):
|
||||
if self.checker in value:
|
||||
if link not in value:
|
||||
self.result = "🔴 -1: YouTube link."
|
||||
self.result = f"🔴 {line}: YouTube link."
|
||||
|
||||
return self.result
|
||||
|
||||
|
||||
youtubers_names = YoutubersNames()
|
||||
print(youtubers_names)
|
||||
print(youtubers_names.trailing_slash())
|
||||
|
Loading…
Reference in New Issue
Block a user