def fn(i):
     try:
         return snippet.div_func(i)
     except OverflowError:
         return 123
     except ZeroDivisionError:
         return 1234
Exemple #2
0
 def int_div_ovf_zer_fn(i):
     try:
         return snippet.div_func(i)
     except OverflowError:
         return 123
     except ZeroDivisionError:
         return 1234
     except:
         return 12345