Line 83 just looks at the extension of the file. If the contents of the file is invalid json then json.load will throw a ValueError. This is a common reason for plover to fail to start because people try to edit their dictionary in a text editor and make an error. It would be nice to catch this error and report to the user that the dictionary is invalid (instead of crashing).