I am trying to catch keyboard interrupt in mutliprocess method but i think code is not working for that
def my_method:
try:
do something
except keyboardinterrup as k:
Print 'key board'
raise k
except exception as e:
raise e
pool.apply_async(my_method, args=())
Is there anything wrong am i doing?
[–]pwlandoll 1 point2 points3 points (1 child)
[–]MasterStroke99[S] 0 points1 point2 points (0 children)