Commit 07f7a4d3 authored by Your Name's avatar Your Name

Fix UnboundLocalError for load_mode variable

parent 84345e4d
...@@ -4405,12 +4405,6 @@ def main(): ...@@ -4405,12 +4405,6 @@ def main():
pass pass
args = parse_args() args = parse_args()
# Update global load_mode based on command line args
if args.loadall:
load_mode["mode"] = "loadall"
elif args.loadswap:
load_mode["mode"] = "loadswap"
# Store args globally for access in endpoints # Store args globally for access in endpoints
global_args = args global_args = args
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment