Spaces:
Running
Running
samir72
commited on
Commit
·
2fdf75c
1
Parent(s):
77d5f0d
Skip DNS error on HF
Browse files
Youtubetranscription_summarizer.py
CHANGED
|
@@ -31,7 +31,7 @@ def nslookup(domain):
|
|
| 31 |
# print(f"IP Address: {ip}")
|
| 32 |
except socket.gaierror as e:
|
| 33 |
print(f"DNS lookup failed for {domain}: {e}")
|
| 34 |
-
return
|
| 35 |
except Exception as e:
|
| 36 |
print(f"An unexpected error occurred: {e}")
|
| 37 |
return False
|
|
|
|
| 31 |
# print(f"IP Address: {ip}")
|
| 32 |
except socket.gaierror as e:
|
| 33 |
print(f"DNS lookup failed for {domain}: {e}")
|
| 34 |
+
return True # Assume true as youtube DNS will fail on huggingface
|
| 35 |
except Exception as e:
|
| 36 |
print(f"An unexpected error occurred: {e}")
|
| 37 |
return False
|