Skip to content

empty config file #5

Description

@N0W3N

I have discovered an issue with the install.py file when you try to create the config.ini

When config.ini already exists, but is either empty or doesn't contain the required headers, it can't continue and terminates the process.

with open('config.ini', 'r') as cfg: path = **config.get('Path of ffmpeg', 'path')**

config.get raises an error if the given section (e.g. Path of ffmpeg) doesn't exist.

This issue could be resolved with adding an exception-clause into the code block, since ConfigParser provides great error handlings by itself.
I'll delay this part of issue, since this code block is already redundant and will be replaced with a more efficient class.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions