In a number of places in the code the function getFinestResolution is called. The call for this program is encapsulated by a try-except block. Still, the error message from pyminc upon trying to open files that do not exist got displayed during run time. Changed that function such that instead of trying to open a non-existing file, it raises an exception instead.