Skip to content

Commit

Permalink
fix #181 (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafiibrahim8 authored Jun 17, 2023
1 parent 216bf01 commit 3ce9776
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
### 0.19.1
- [Firefox based] Fix an error when `load()` fails if librewolf or firefox is not installed
### 0.19.0
- [MODULE] Added new browser support: LibreWolf
- [MODULE] Added `immutable` mode for opening cookies database
Expand Down
2 changes: 1 addition & 1 deletion browser_cookie3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ def __expand_and_check_path(self, paths: Union[str, List[str], Dict[str, str], L
expanded = os.path.expanduser(path)
if os.path.isdir(expanded):
return expanded
raise FileNotFoundError(
raise BrowserCookieError(
f'Could not find {self.browser_name} profile directory')

def __find_cookie_file(self, linux_data_dirs=None, windows_data_dirs=None, osx_data_dirs=None):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='browser-cookie3',
version='0.19.0',
version='0.19.1',
packages=['browser_cookie3'],
# look for package contents in current directory
package_dir={'browser_cookie3': 'browser_cookie3'},
Expand Down
5 changes: 5 additions & 0 deletions tests/test_browsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,11 @@ def test_vivaldi(self):
self.__test_chromium_based(vivaldi)

def test_z_load(self):
logger.info('Testing load() at the end of the test suite')
load()

def test_a_load(self):
logger.info('Testing load() at the beginning of the test suite')
load()


Expand Down

0 comments on commit 3ce9776

Please sign in to comment.