瀏覽代碼

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