File: //lib/python3/dist-packages/CommandNotFound/__pycache__/util.cpython-38.pyc
U
���ai � @ sV d dl mZ d dlZd dlZejdkr,dZndZeejddd�e�Zd d
� Z d
gZ
dS )� )�print_functionN�3�gettextZugettextzcommand-not-foundT)�fallbackc C sP �z<z| � W �n* tk
�r: } �zttd�t jd� t|t jd� ttd�t jd� tt jd� ttd�| t jd� ttd�t j t jd� z&ddl}|jd d
ddd
gt jd� W n t t
fk
r� Y nX ttd�t jd� tt jd� t|t jd� zddl}|�� W n t k
�r( Y nX W 5 d}~X Y nX W 5 t �d� X dS )z� Calls callback and catches all exceptions.
When something bad happens prints a long error message
with bug report information and exits the program� zBSorry, 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 NZlsb_releasez-iz-dz-rz-c)�stdoutzException information:)
�sys�exit� Exception�print�_�stderr�version_info�
subprocessZcall�ImportError�OSError� tracebackZ print_exc)�callbackZbug_report_url�versionZexr r � r �6/usr/lib/python3/dist-packages/CommandNotFound/util.py�crash_guard s0 r )�
__future__r r r r Z_gettext_method�getattr�translationr
r �__all__r r r r �<module> s