Removed redundant "pass".
Added a boolean parameter to decorator for exception printing.