Instead of printing the error try to raise an error with an informative message (it could be the same as you are printing). If other QIIME features uses this code and they don't plan to raise an error, it will give some problems with other QIIME features (as the Galaxy integration)