o
    ŸŽ°ai  ã                   @   sV   d dl mZ d dlZd dlZejdkrdZndZeejddd�eƒZd	d
„ Z	d
gZ
dS )é    )Úprint_functionNÚ3ÚgettextÚugettextzcommand-not-foundT)Úfallbackc                 C   sV  z¤z| ƒ  W nŽ t y” } z‚ttdƒtjd� t|tjd� ttdƒtjd� ttjd� ttdƒ| tjd� ttdƒtj tjd� zddl}|jg d¢tjd	� W n tt	fy_   Y nw ttd
ƒtjd� ttjd� t|tjd� z
ddl
}| ¡  W n	 ty‰   Y nw W Y d}~nd}~ww W t d¡ dS W t d¡ dS t d¡ 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:zcommand-not-found version: %szPython version: %d.%d.%d %s %dr   N)Úlsb_releasez-iz-dz-rz-c)ÚstdoutzException information:é   )Ú	ExceptionÚprintÚ_ÚsysÚstderrÚversion_infoÚ
subprocessÚcallÚImportErrorÚOSErrorÚ	tracebackÚ	print_excÚexit)ÚcallbackÚbug_report_urlÚversionÚexr   r   © r   ú6/usr/lib/python3/dist-packages/CommandNotFound/util.pyÚcrash_guard   s>   
ÿÿ€îÿ€ r   )Ú
__future__r   r   r   r   Ú_gettext_methodÚgetattrÚtranslationr   r   Ú__all__r   r   r   r   Ú<module>   s   

