Skip to content

Commit

Permalink
Add keyboard exit catch
Browse files Browse the repository at this point in the history
  • Loading branch information
naisy committed Dec 13, 2018
1 parent 4ea055f commit 74da152
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/detection_deeplab_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,8 @@ def start(self, cfg):
"""
END while
"""
except KeyboardInterrupt:
pass
except:
import traceback
traceback.print_exc()
Expand Down
2 changes: 2 additions & 0 deletions lib/detection_faster_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,8 @@ def start(self, cfg):
"""
END while
"""
except KeyboardInterrupt:
pass
except:
import traceback
traceback.print_exc()
Expand Down
2 changes: 2 additions & 0 deletions lib/detection_mask_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,8 @@ def start(self, cfg):
"""
END while
"""
except KeyboardInterrupt:
pass
except:
import traceback
traceback.print_exc()
Expand Down
2 changes: 2 additions & 0 deletions lib/detection_nms_v0.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,8 @@ def start(self, cfg):
"""
END while
"""
except KeyboardInterrupt:
pass
except:
import traceback
traceback.print_exc()
Expand Down
2 changes: 2 additions & 0 deletions lib/detection_nms_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,8 @@ def start(self, cfg):
"""
END while
"""
except KeyboardInterrupt:
pass
except:
import traceback
traceback.print_exc()
Expand Down
2 changes: 2 additions & 0 deletions lib/detection_trt_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,8 @@ def start(self, cfg):
"""
END while
"""
except KeyboardInterrupt:
pass
except:
import traceback
traceback.print_exc()
Expand Down
2 changes: 2 additions & 0 deletions lib/mtdetection_mask_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,8 @@ def start(self, cfg):
"""
END while
"""
except KeyboardInterrupt:
pass
except:
import traceback
traceback.print_exc()
Expand Down

0 comments on commit 74da152

Please sign in to comment.