identify icon indicating copy to clipboard operation
identify copied to clipboard

Fix IndexError when shebang is just '#!/usr/bin/env'

Open harrymander opened this issue 1 year ago • 2 comments
trafficstars

harrymander avatar Jun 27 '24 04:06 harrymander

is there an actual case where this came up? feels a bit like garbage-in-garbage-out

asottile avatar Jun 27 '24 04:06 asottile

I did come across it randomly due to a typo in a file. I agree that it is a pretty unlikely scenario, though it seems to be the only case where the library raises an exception due to the contents of the file. I suppose it's not too hard for client code to just check for this edge case if it may be a problem

harrymander avatar Jul 01 '24 09:07 harrymander