mirror of
https://github.com/torproject/torbrowser-launcher.git
synced 2024-11-26 19:10:31 +00:00
Return early in torbrowser_12_rename_old_tbb() if the TBB path does not exist yet
This commit is contained in:
parent
52f7be32cd
commit
7472ff6b37
@ -177,6 +177,8 @@ class Common(object):
|
||||
|
||||
# Tor Browser 12.0 no longer has locales. If an old TBB folder exists with locals, rename it to just tor_browser
|
||||
def torbrowser12_rename_old_tbb(self):
|
||||
if not os.path.exists(self.paths["tbb"]["dir"]):
|
||||
return
|
||||
for filename in os.listdir(self.paths["tbb"]["dir"]):
|
||||
abs_filename = os.path.join(self.paths["tbb"]["dir"], filename)
|
||||
if filename.startswith("tor-browser_") and os.path.isdir(abs_filename):
|
||||
|
Loading…
Reference in New Issue
Block a user