Invalid use of prepare-upload crashes git-ubuntu (Traceback)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
git-ubuntu |
New
|
Undecided
|
Unassigned |
Bug Description
Using git-ubuntu 1.1-20-g2c19860 (edge), I noticed that calling
$ git ubuntu prepare-upload
leads to a traceback. That usage is clearly invalid, but git-ubuntu should give a useful help message instead of crashing (compare with what e.g. `git clone` does). The full traceback follows.
--
Traceback (most recent call last):
File "/snap/
load_
File "/snap/
args = parser.parse_args()
File "/snap/
args, argv = self.parse_
File "/snap/
namespace, args = self._parse_
File "/snap/
stop_index = consume_
File "/snap/
take_
File "/snap/
action(self, namespace, argument_values, option_string)
File "/snap/
subnamespace, arg_strings = parser.
File "/snap/
namespace, args = self._parse_
File "/snap/
', '.join(
TypeError: sequence item 0: expected str instance, NoneType found
Sorry, yes, this is a known bug in Python as shipped in 20.04. Fixing it either means I need to SRU the fix to Focal, or update the snap to use core22.