--- a/eric6/Plugins/VcsPlugins/vcsMercurial/LargefilesExtension/largefiles.py Wed Jun 17 17:12:21 2020 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/LargefilesExtension/largefiles.py Wed Jun 17 20:18:54 2020 +0200 @@ -38,8 +38,11 @@ @param direction direction of the conversion (string, one of 'largefiles' or 'normal') @param projectFile file name of the current project file (string) + @exception ValueError raised to indicate a bad value for the + 'direction' parameter. """ - assert direction in ["largefiles", "normal"] + if direction not in ["largefiles", "normal"]: + raise ValueError("Bad value for 'direction' parameter.") projectDir = os.path.dirname(projectFile)