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