Submit
Path:
~
/
/
lib
/
python3
/
dist-packages
/
duplicity
/
__pycache__
/
File Content:
robust.cpython-310.pyc
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"