Handle garbage in environment more gracefully when setting vsenv
Environment line may not contain '=' and thus fail to decompose into a
key/value pair.
@@ -96,7 +96,12 @@ def _setup_vsenv(force: bool) -> bool:
continue
if not bat_line:
continue
+ try:
k, v = bat_line.split('=', 1)
+ except ValueError:
+ # there is no "=", ignore junk data
+ pass
+ else:
os.environ[k] = v
return True
