Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessandroZ committed Feb 15, 2018
1 parent 0b83901 commit ce145c9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
13 changes: 6 additions & 7 deletions Linux/lazagne/softwares/browsers/mozilla.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,16 +280,15 @@ def get_firefox_profiles(self, directory):
cp = RawConfigParser()
try:
cp.read(os.path.join(directory, 'profiles.ini'))
profile_list = []
for section in cp.sections():
if section.startswith('Profile'):
if cp.has_option(section, 'Path'):
profile_list.append(os.path.join(directory, cp.get(section, 'Path').strip()))
return profile_list
except:
return []

profile_list = []
for section in cp.sections():
if section.startswith('Profile'):
if cp.has_option(section, 'Path'):
profile_list.append(os.path.join(directory, cp.get(section, 'Path').strip()))
return profile_list

def save_db(self, userpath):

# create the folder to save it by profile
Expand Down
15 changes: 7 additions & 8 deletions Windows/lazagne/softwares/browsers/mozilla.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,16 +250,15 @@ def get_firefox_profiles(self, directory):
cp = RawConfigParser()
try:
cp.read(os.path.join(directory, 'profiles.ini'))
profile_list = []
for section in cp.sections():
if section.startswith('Profile'):
if cp.has_option(section, 'Path'):
profile_list.append(os.path.join(directory, cp.get(section, 'Path').strip()))
return profile_list
except:
return []

profile_list = []
for section in cp.sections():
if section.startswith('Profile'):
if cp.has_option(section, 'Path'):
profile_list.append(os.path.join(directory, cp.get(section, 'Path').strip()))
return profile_list


# ------------------------------ Master Password Functions ------------------------------

def is_masterpassword_correct(self, masterPassword=''):
Expand Down

0 comments on commit ce145c9

Please sign in to comment.