Skip to content

Commit a3ba378

Browse files
committed
Fix UnboundLocalError in core.py
Remove redundant 'import gpodder' inside Core.__init__() that was shadowing the global gpodder module, causing UnboundLocalError when accessing gpodder.home and gpodder.database_file.
1 parent 667fbf0 commit a3ba378

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/gpodder/core.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ def __init__(self,
4141
self.db = dbfactory.create_database(self.config)
4242
else:
4343
# For backwards compatibility and testing
44-
import gpodder
4544
self.db = database_class(gpodder.database_file)
4645

4746
self.model = model_class(self.db)

0 commit comments

Comments
 (0)