Add --panic to raise when loading fails

This commit is contained in:
somebody
2023-07-08 14:04:46 -05:00
parent fd6f66a98d
commit c2ee30af32
3 changed files with 8 additions and 0 deletions

View File

@@ -1400,6 +1400,7 @@ def general_startup(override_args=None):
parser.add_argument('-f', action='store', help="option for compatability with colab memory profiles")
parser.add_argument('-v', '--verbosity', action='count', default=0, help="The default logging level is ERROR or higher. This value increases the amount of logging seen in your screen")
parser.add_argument('-q', '--quiesce', action='count', default=0, help="The default logging level is ERROR or higher. This value decreases the amount of logging seen in your screen")
parser.add_argument("--panic", action='store_true', help="Disables falling back when loading fails.")
#args: argparse.Namespace = None
if "pytest" in sys.modules and override_args is None: