�
{��ci � � � d dl mZ d dlZd dlZej dk\ rdZndZ e ej dd�� e� Zd � Z d
gZ
y)� )�print_functionN�3�gettext�ugettextzcommand-not-foundT)�fallbackc �� � | � t j d� y# t $ �r�}t t d� t j �� t |t j �� t t d� t j �� t t j �� t t d� |z t j �� t t d� t j
z t j �� ddl}|j g d�t j � � n# t t f$ r Y nw xY wt t d
� t j �� t t j �� t |t j �� ddl
}|j � n# t $ r Y nw xY wY d}~���d}~ww xY w# t j d� w xY w)z� Calls callback and catches all exceptions.
When something bad happens prints a long error message
with bug report information and exits the programzBSorry, command-not-found has crashed! Please file a bug report at:)�filez9Please include the following information with the report:zcommand-not-found version: %szPython version: %d.%d.%d %s %dr N)�lsb_releasez-iz-dz-rz-c)�stdoutzException information:� )
� Exception�print�_�sys�stderr�version_info�
subprocess�call�ImportError�OSError� traceback� print_exc�exit)�callback�bug_report_url�version�exr r s �6/usr/lib/python3/dist-packages/CommandNotFound/util.py�crash_guardr sI � �� ��J�, ����
��+ � ��!�X�Y�`c�`j�`j�k��.�s�z�z�2��!�O�P�WZ�Wa�Wa�b��s�z�z�"��!�3�4�w�>�S�Z�Z�P��!�4�5��8H�8H�H�s�z�z�Z�
�!���� G�PS�PZ�PZ��[����)�
��
���!�,�-�C�J�J�?��s�z�z�"��"�3�:�:�&�
� ��#�#�%���
��
���% ��* ����
�sp � �
G
�CG�'D,�+G�,D>�;G�=D>�>AG�F0�/G�0 F<�9G�;F<�<G�?G
�G
�
G
�
G$r )�
__future__r r r r �_gettext_method�getattr�translationr r �__all__� � r �<module>r' |