input: Write a function to generate a Python code for crawling a website for phone numbers. The function should take the website URL as input and return a list of phone numbers found on the website. The phone numbers should be in the format of a regex pattern matching a sequence of digits separated by dashes (\d{3}-\d{3}-\d{4}).
  
  def crawl_website_for_phone_numbers(website):
      import requests
      import re
      response = requests.get(website)
      phone_numbers = re.findall('\d{3}-\d{3}-\d{4}', response.text)
      return phone_numbers
      
  assert crawl_website_for_phone_numbers('www.example.com')==['123-456-7890', '987-654-3210']
  assert crawl_website_for_phone_numbers('www.anotherwebsite.com')==[]
  assert crawl_website_for_phone_numbers('www.randomsite.com')==['555-555-5555']
  assert crawl_website_for_phone_numbers('www.testsite.com')==['111-222-3333', '444-555-6666']
  assert crawl_website_for_phone_numbers('www.nosuchpage.com')==[]
output: def crawl_website_for_phone_numbers(website):
      import requests
      import re
      try:
          response = requests.get(website)
          phone_numbers = re.findall(r'\d{3}-\d{3}-\d{4}', response.text)
      except:
          phone_numbers = []
      return phone_numbers