mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-02 22:45:03 -04:00
Fix flake8 issues found in cli
This commit is contained in:
parent
754c7d96dd
commit
cfbf07b903
14 changed files with 146 additions and 128 deletions
|
@ -383,7 +383,7 @@ class Common:
|
|||
try:
|
||||
xdg_config_home = os.environ["XDG_CONFIG_HOME"]
|
||||
onionshare_data_dir = f"{xdg_config_home}/onionshare"
|
||||
except:
|
||||
except Exception:
|
||||
onionshare_data_dir = os.path.expanduser("~/.config/onionshare")
|
||||
elif self.platform == "Darwin":
|
||||
onionshare_data_dir = os.path.expanduser(
|
||||
|
@ -393,7 +393,7 @@ class Common:
|
|||
try:
|
||||
xdg_config_home = os.environ["XDG_CONFIG_HOME"]
|
||||
onionshare_data_dir = f"{xdg_config_home}/onionshare"
|
||||
except:
|
||||
except Exception:
|
||||
onionshare_data_dir = os.path.expanduser("~/.config/onionshare")
|
||||
|
||||
# Modify the data dir if running tests
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue