Sergienko Anton 7 anos atrás
pai
commit
bd4c77d445
1 arquivos alterados com 1 adições e 1 exclusões
  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