Fixed broken dictionary

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2020-02-25 22:11:34 +01:00
parent 95f68d8cda
commit 727abad8e8

View file

@ -111,7 +111,8 @@ class BuildPackage(Utils):
else:
subprocess.call(f"{' '.join(pass_var)} ./{self.prgnam}.SlackBuild", shell=True)
os.chdir(self.path)
except KeyboardInterrupt: # (OSError, IOError):
except (KeyboardInterrupt, KeyError) as e:
print(e) # (OSError, IOError, KeyError):
self.msg.pkg_not_found("\n", self.prgnam, "Wrong file", "\n")
def _check_sources(self):