only output exception in verbose mode
This commit is contained in:
parent
ea70a5bd79
commit
2a61e80071
2 changed files with 6 additions and 4 deletions
|
@ -68,6 +68,7 @@ def main():
|
||||||
loop.run()
|
loop.run()
|
||||||
except (KeyboardInterrupt, IOError, OSError) as e:
|
except (KeyboardInterrupt, IOError, OSError) as e:
|
||||||
logging.error(e)
|
logging.error(e)
|
||||||
|
if config['verbose']:
|
||||||
import traceback
|
import traceback
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
os._exit(1)
|
os._exit(1)
|
||||||
|
|
|
@ -79,6 +79,7 @@ def main():
|
||||||
loop.run()
|
loop.run()
|
||||||
except (KeyboardInterrupt, IOError, OSError) as e:
|
except (KeyboardInterrupt, IOError, OSError) as e:
|
||||||
logging.error(e)
|
logging.error(e)
|
||||||
|
if config['verbose']:
|
||||||
import traceback
|
import traceback
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
os._exit(1)
|
os._exit(1)
|
||||||
|
|
Loading…
Reference in a new issue