Skip to content

Commit

Permalink
Fix bug about FileNotFoundError #9
Browse files Browse the repository at this point in the history
  • Loading branch information
birchkwok committed Jul 21, 2024
1 parent 5909a5b commit 6cd92b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lynse/api/native_api/database_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ def update_database(self):
if not (self.root_path / 'databases.json').exists():
return []

if not (self.root_path / 'databases').exists():
return []

folders = [f.name for f in (self.root_path / 'databases').iterdir() if f.is_dir()]

with open(self.root_path / 'databases.json', 'r') as f:
Expand Down

0 comments on commit 6cd92b6

Please sign in to comment.