mirror of
https://github.com/MiSTer-devel/Distribution_MiSTer.git
synced 2026-04-19 03:04:16 +00:00
Adding better error handling
This commit is contained in:
committed by
GitHub
parent
18030e7fec
commit
a01911ff35
8
.github/calculate_db.py
vendored
8
.github/calculate_db.py
vendored
@@ -13,6 +13,7 @@ import os
|
||||
import tempfile
|
||||
import xml.etree.ElementTree as ET
|
||||
import xml.etree.ElementTree
|
||||
import traceback
|
||||
from zipfile import ZipFile
|
||||
from inspect import currentframe, getframeinfo
|
||||
from typing import Dict, List, Any
|
||||
@@ -869,4 +870,9 @@ def read_mra_fields(mra_path):
|
||||
|
||||
if __name__ == '__main__':
|
||||
dryrun = len(sys.argv) == 2 and sys.argv[1] == '-d'
|
||||
main(dryrun)
|
||||
try:
|
||||
main(dryrun)
|
||||
except Exception as e:
|
||||
print(str(e))
|
||||
print(traceback.format_exc())
|
||||
exit(1)
|
||||
|
||||
Reference in New Issue
Block a user