mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-09 11:51:21 +00:00
Fix mis-merge: use argv parameter instead of sys.argv
This commit is contained in:
parent
975f268d8d
commit
6931d10ace
@ -170,7 +170,7 @@ def parse_or_exit_with_explanation_with_config(config, argv, stdout, stderr):
|
||||
# On Python 2 the string may turn into a unicode string, e.g. the error
|
||||
# may be unicode, in which case it will print funny. Once we're on
|
||||
# Python 3 we can just drop the ensure_str().
|
||||
print(six.ensure_str("%s: %s\n" % (sys.argv[0], e)), file=stdout)
|
||||
print(six.ensure_str("%s: %s\n" % (argv[0], e)), file=stdout)
|
||||
sys.exit(1)
|
||||
return config
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user