Silence a (rare) KeyboardInterrupt exception in mitmproxy.

This commit is contained in:
Aldo Cortesi 2012-05-31 21:18:41 -07:00
parent ee2950cd19
commit f9b04b84cd
1 changed files with 4 additions and 1 deletions

View File

@ -61,6 +61,9 @@ if __name__ == '__main__':
opts.intercept = options.intercept
opts.debug = options.debug
m = console.ConsoleMaster(server, opts)
m.run()
try:
m.run()
except KeyboardInterrupt:
pass