use 'v[0] == "c"' instead of 'v.startswith("c")'

This commit is contained in:
Mike Fährmann
2024-10-15 08:24:06 +02:00
parent d68bb78f44
commit 36883e458e
10 changed files with 24 additions and 20 deletions

View File

@@ -63,7 +63,7 @@ def main():
browser, _, profile = args.cookies_from_browser.partition(":")
browser, _, keyring = browser.partition("+")
browser, _, domain = browser.partition("/")
if profile.startswith(":"):
if profile and profile[0] == ":":
container = profile[1:]
profile = None
else: