samir72 commited on
Commit
2fdf75c
·
1 Parent(s): 77d5f0d

Skip DNS error on HF

Browse files
Files changed (1) hide show
  1. Youtubetranscription_summarizer.py +1 -1
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 False
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