Commits

Michał Górny committed eae3866

Catch OSError when calling Popen.terminate().

  • Participants
  • Parent commits 77b2397

Comments (0)

Files changed (1)

SmartLiveRebuild/vcs/__init__.py

 
 	def abortupdate(self):
 		if self._running and self.subprocess is not None:
-			self.subprocess.terminate()
+			try:
+				self.subprocess.terminate()
+			except OSError:
+				pass
 
 	def __str__(self):
 		return ', '.join(self.cpv)