Simplified exception handling

This commit is contained in:
vzamanillo 2016-10-23 21:05:44 +02:00
parent d0d26816dc
commit 39cbb7b388

View File

@ -93,10 +93,9 @@ def main():
subprocess.check_call('ninja -C out/nw ffmpeg', shell=True) subprocess.check_call('ninja -C out/nw ffmpeg', shell=True)
except KeyboardInterrupt: except KeyboardInterrupt:
print "\n\nShutdown requested... exiting" print "\n\nShutdown requested... exiting"
except (SystemExit, CalledProcessError) as e: except Exception:
sys.exit(e) print traceback.format_exc()
except: sys.exit(1)
sys.exit(3)
def parse_args(): def parse_args():