diff options
author | Aksh Gupta <akshgpt7@gmail.com> | 2021-03-10 08:40:06 +0000 |
---|---|---|
committer | Aksh Gupta <akshgpt7@gmail.com> | 2021-03-10 22:59:47 +0530 |
commit | ea8d2cfdfe3834e1dbb0ef0e12beb7da41a033f2 (patch) | |
tree | f809dcc93a03c1be03d488c00b427850705ea671 /cli/onionshare_cli/__init__.py | |
parent | dd8742535f99f9c51c890aa893966f1146f6ffaf (diff) | |
download | onionshare-ea8d2cfdfe3834e1dbb0ef0e12beb7da41a033f2.tar.gz onionshare-ea8d2cfdfe3834e1dbb0ef0e12beb7da41a033f2.zip |
chore: refactor code quality issues
Diffstat (limited to 'cli/onionshare_cli/__init__.py')
-rw-r--r-- | cli/onionshare_cli/__init__.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/onionshare_cli/__init__.py b/cli/onionshare_cli/__init__.py index 0f361b00..c40bf6a0 100644 --- a/cli/onionshare_cli/__init__.py +++ b/cli/onionshare_cli/__init__.py @@ -514,8 +514,7 @@ def main(cwd=None): print("Stopped because auto-stop timer ran out") web.stop(app.port) break - else: - web.receive_mode.can_upload = False + web.receive_mode.can_upload = False # Allow KeyboardInterrupt exception to be handled with threads # https://stackoverflow.com/questions/3788208/python-threading-ignores-keyboardinterrupt-exception time.sleep(0.2) |