eric6/Plugins/VcsPlugins/vcsMercurial/LargefilesExtension/largefiles.py

changeset 7628
f904d0eef264
parent 7360
9190402e4505
child 7759
51aa6c6b66f7
--- 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)
         

eric ide

mercurial