1. VectorLinux Core
  2. vinstall

Commits

Rodrigo Bistolfi  committed 41d03a0

Fixed NameError (CalledProcessError) in advanced.py

  • Participants
  • Parent commits ec1adf1
  • Branches master

Comments (0)

Files changed (1)

File vinstall/controller/advanced.py

View file
  • Ignore whitespace
         try:
             cmd = "/sbin/cfdisk %s" % self.disks[disk].path()
             subprocess.check_call(cmd.split())
-        except CalledProcessError as error:
+        except subprocess.CalledProcessError as error:
             if error.returncode == 4:
                 cmd = "/sbin/cfdisk -z %s" % self.disks[disk].path()
                 subprocess.check_call(cmd.split())