diff options
author | Micah Lee <micah@micahflee.com> | 2021-02-22 13:50:04 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-22 13:50:04 -0800 |
commit | dfaa55d2a40edfb892e123f370f5d22b79e33d04 (patch) | |
tree | 9b2a9fc5e557b49b99c63700f9e1fa0b589790e5 /cli/onionshare_cli/__init__.py | |
parent | ee20c648c669a0a4b2781eb5ee89f7bc03d25a6b (diff) | |
parent | 450bfcfe984734f2dbdbd84be93045ade24b46b1 (diff) | |
download | onionshare-7a14cd62ad023070ce766a8ee31b90af76ff2f37.tar.gz onionshare-7a14cd62ad023070ce766a8ee31b90af76ff2f37.zip |
Merge pull request #1288 from micahflee/version-2.3.1v2.3.1
Version 2.3.1
Diffstat (limited to 'cli/onionshare_cli/__init__.py')
-rw-r--r-- | cli/onionshare_cli/__init__.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cli/onionshare_cli/__init__.py b/cli/onionshare_cli/__init__.py index 72212760..092e716a 100644 --- a/cli/onionshare_cli/__init__.py +++ b/cli/onionshare_cli/__init__.py @@ -2,7 +2,7 @@ """ OnionShare | https://onionshare.org/ -Copyright (C) 2014-2020 Micah Lee, et al. <micah@micahflee.com> +Copyright (C) 2014-2021 Micah Lee, et al. <micah@micahflee.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -293,7 +293,11 @@ def main(cwd=None): if mode == "share" or mode == "website": # Unless you passed in a persistent filename, in which case get the filenames from # the mode settings - if persistent_filename and not mode_settings.just_created and len(filenames) != 0: + if ( + persistent_filename + and not mode_settings.just_created + and len(filenames) != 0 + ): filenames = mode_settings.get(mode, "filenames") else: @@ -321,7 +325,6 @@ def main(cwd=None): if persistent_filename: mode_settings.set(mode, "filenames", filenames) - # Create the Web object web = Web(common, False, mode_settings, mode) |