Matty-Sam commited on
Commit
06820d5
·
verified ·
1 Parent(s): 53897cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,6 @@ def search_for_books(search_term: str) -> str:
41
  Args:
42
  search_term: A string representing a search terms. Can be part of the book title or the author's name.
43
  """
44
- json_data = response.json() if response and response.status_code == 200 else None
45
  try:
46
  params = {"search": search_terms}
47
  base_url = 'gutendex.com/books'
@@ -61,6 +60,7 @@ def search_for_books(search_term: str) -> str:
61
  }
62
  results.append(book_info)
63
  return results
 
64
  except Exception as e:
65
  return f"There was an error with function search_for_books"
66
 
 
41
  Args:
42
  search_term: A string representing a search terms. Can be part of the book title or the author's name.
43
  """
 
44
  try:
45
  params = {"search": search_terms}
46
  base_url = 'gutendex.com/books'
 
60
  }
61
  results.append(book_info)
62
  return results
63
+
64
  except Exception as e:
65
  return f"There was an error with function search_for_books"
66