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)
except KeyboardInterrupt:
print "\n\nShutdown requested... exiting"
except (SystemExit, CalledProcessError) as e:
sys.exit(e)
except:
sys.exit(3)
except Exception:
print traceback.format_exc()
sys.exit(1)
def parse_args():