def add_folder_location(self):
        notesdir = QtGui.QFileDialog.getExistingDirectory(self, 'Notes Directory', os.path.expanduser('~'))
        try:
            if notesdir not in self.conf['conf_notesLocations'].keys():
                self._add_noteslocation_row(notesdir)
        except __HOLE__:
            self.conf['conf_notesLocations'] = {}
            self._add_noteslocation_row(notesdir)
dataset/ETHPy150Open akehrer/Motome/Motome/Controllers/SettingsDialog.py/SettingsDialog.add_folder_location