Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/duplicity/__pycache__/ |
Upload File : |
o �~�_� � @ s: d dl Z d dlmZ d dlmZ dZd dd�Zdd � ZdS )� N)�librsync)�log� � c C s� ddl m} z||� W S tttj|jfyH } z+t|t�r+t|d�r<t j |j dv r<| r;| |g|�R � W Y d}~S n� W Y d}~dS d}~ww )z�Apply function to args, if error, run error_handler on exception This only catches certain exceptions which seem innocent enough. r ��path�errno) �EPERM�ENOENT�EACCES�EBUSY�EEXIST�ENOTDIR�ENAMETOOLONG�EINTR� ENOTEMPTY�EIO�ETXTBSY�ESRCH�EINVALN)� duplicityr �IOError�EnvironmentErrorr � librsyncError� PathException� isinstance�hasattrr � errorcode)� error_handler�function�argsr �excr r �2/usr/lib/python3/dist-packages/duplicity/robust.py�check_common_error s"