소스 검색

Fix error

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

+ 1 - 1
src/program_efremova.py

@@ -56,7 +56,7 @@ def function_execution_time(func):
 def index_of(string, substring):
     try:
         index = string.index(substring)
-    except:
+    except ValueError:
         index = -1
     return index