ankostis / wltp

Assigning result of a function call, where the function has no return PYL-E1111
Bug risk
Critical
2 occurrences in this check
Assigning result of a function call, where the function has no return
 82    except com_error as ex:  # @UndefinedVariable
 83        if ex.hresult == -2147352567:
 84            msg = "Excel complained: \n  %s" % ex.excepinfo[2]
 85            msg = show_unlock_msg(msg) 86            raise Exception(msg)
 87        raise
 88
Assigning result of a function call, where the function has no return
 76        xl_vbp = xl_wb.VBProject
 77        if xl_vbp.Protection == 1:
 78            msg = "The VBA-code in Excel is protected!"
 79            msg = show_unlock_msg(msg) 80            raise Exception(msg)
 81        return xl_vbp
 82    except com_error as ex:  # @UndefinedVariable