Fixed problem with write_error and soup

pull/5/head
Lasse Edfast 5 years ago
parent 9ad3b3513c
commit 30ad19ba44
  1. 5
      facebook/helpers.py

@ -45,9 +45,6 @@ def write_error(nr, e="", traceback="", soup="", user="", url="", url_name=""):
url = "ingen url"
url_name = "ingen url"
if soup != "":
soup = str(soup.prettify())
print(e) # FELSÖKNING
key = datetime.now().strftime("%Y%m%d_%H:%M:%S")
@ -59,7 +56,7 @@ def write_error(nr, e="", traceback="", soup="", user="", url="", url_name=""):
"error": str(e),
"url": str(url),
"url_name": url_name,
"soup": soup,
"soup": str(soup),
"traceback": str(traceback),
}

Loading…
Cancel
Save