You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug pros upload crashes when a slot is missing instead of emitting an error.
To Reproduce
Run `pros upload --target v5 {path to file}"
pros crashes with "unsupported operand type" since the slot is a NoneType (i.e., undefined/None)
Expected behavior
PROS outputs an error similar to the text "Specify a slot to upload to."
Screenshots
$ pros upload --target v5 /dev/null
ERROR - __main__:main - unsupported operand type(s) for -=: 'NoneType' and 'int' - pros-cli version:3.5.0
File "click\core.py", line 783, in invoke
File "pros\cli\upload.py", line 121, in upload
TypeError: unsupported operand type(s) for -=: 'NoneType' and 'int'
Desktop (please complete the following information):
OS: Windows 10
Version 22H2 (OS build 19045.4046)
Other context:
I'm trying out pros-rs (Rust bindings to the PROS libraries) to generate the binary, but that probably doesn't matter.
I'm new to PROS and my team likely won't let me switch because I just convinced them this year to use VEXCode Python since CPP is a little tricky for beginners, but if you would like, I can submit a PR sometime next weekend.
The text was updated successfully, but these errors were encountered:
Describe the bug
pros upload
crashes when a slot is missing instead of emitting an error.To Reproduce
pros
crashes with "unsupported operand type" since the slot is a NoneType (i.e., undefined/None)Expected behavior
PROS outputs an error similar to the text "Specify a slot to upload to."
Screenshots
Here's the permalink to the line in question:
pros-cli/pros/cli/upload.py
Line 121 in 30dfe91
PROS version:
3.5.0
Desktop (please complete the following information):
Other context:
I'm trying out
pros-rs
(Rust bindings to the PROS libraries) to generate the binary, but that probably doesn't matter.I'm new to PROS and my team likely won't let me switch because I just convinced them this year to use VEXCode Python since CPP is a little tricky for beginners, but if you would like, I can submit a PR sometime next weekend.
The text was updated successfully, but these errors were encountered: