We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 578d6e9 commit 19123aeCopy full SHA for 19123ae
gs/backend/migrate.py
@@ -5,7 +5,7 @@
5
6
if __name__ == "__main__":
7
if len(sys.argv) > 2:
8
- print("Invalid input. ")
+ raise ValueError(f"Invalid input. Expected at most 1 argument, received {len(sys.argv)}")
9
elif len(sys.argv[1:]) == 0:
10
print("Migrating callsign data...")
11
add_callsigns(get_db_session())
@@ -18,4 +18,4 @@
18
print("Migrating main command data...")
19
add_main_commands(get_db_session())
20
else:
21
- print("Invalid input. Optional arguments include 'callsigns' or 'commands'.")
+ raise ValueError("Invalid input. Optional arguments include 'callsigns' or 'commands'.")
0 commit comments