Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash: KeyError: 'podcast-directory' #12

Open
willemw12 opened this issue Oct 8, 2016 · 0 comments
Open

Crash: KeyError: 'podcast-directory' #12

willemw12 opened this issue Oct 8, 2016 · 0 comments

Comments

@willemw12
Copy link

On Arch Linux (https://aur.archlinux.org/packages/podfox-git/), podfox crashes:

$ podfox feeds                                               
Traceback (most recent call last):
  File "/usr/bin/podfox", line 11, in <module>
    load_entry_point('podfox==0.1.1', 'console_scripts', 'podfox')()                                                                                     File "/usr/lib/python3.5/site-packages/podfox/__init__.py", line 304, in main                                                                            pretty_print_feeds(available_feeds())                                                                                                                File "/usr/lib/python3.5/site-packages/podfox/__init__.py", line 221, in available_feeds                                                                 base = CONFIGURATION['podcast-directory']                                                                                                          KeyError: 'podcast-directory'

A way to fix this is to declare CONFIGURATION global:

def main():
...
        try:
            global CONFIGURATION
            CONFIGURATION = json.load(conf_file)

It is patched now for Arch Linux, however, other platforms or distros may also have this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant