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  zz|   W n t y } zt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   

