In case any judge of the Supreme Court or the Court of Appeals or of a circuit court or chancery court shall fail to attend at any term of court which either of them is required by law to hold, or in case the Attorney General or any district attorney shall fail to attend at any court which he is required to attend officially, it shall be the duty of the clerk of such court to certify the number of days such judge, chancellor, Attorney General, or district attorney was absent at each term of the court to the Auditor of Public Accounts, who shall deduct twice the number of days so certified from the time for which the salary of such officer may be estimated, unless such officer shall make oath, and file the same in the Auditor’s office, that his absence was occasioned by sickness of himself or his family, or that his attendance was prevented by high water, the prevalence of an epidemic or contagious disease, or by accident not within his control.