소스 검색

Fix error

Sergienko Anton 7 년 전
부모
커밋
11681e732b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/program_efremova.py

+ 1 - 1
src/program_efremova.py

@@ -208,7 +208,7 @@ def check_word_in_site(word, url, function_check_html):
             if answer_from_html is not None:
                 answer = answer_from_html
         else:
-            answer = response.status_code
+            answer = str(response.status_code)
     except ConnectionError:
         print("Ошибка: ConnectionError")
         time.sleep(1)