def applyWCS(path): '''apply world coordinate system to images''' try: improc = SecondPassProcessor(path) improc.applyWCS() return okJSONResponse() except Exception as e: #an unexpected exception logger.debug(traceback.format_exc()) #log the traceback raise e