Sergienko Anton 7 жил өмнө
parent
commit
bd4c77d445

+ 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