ó
úJVNc           @   sa   d  d l  Z  d  d l Z d  d l Z d  d l  Z  e  j d d e ƒj Z d „  Z d d g Z d S(   iÿÿÿÿNs   command-not-foundt   fallbackc         C   sI  z4y |  ƒ  Wn"t  k
 r2} t j t d ƒ IJt j | IJt j t d ƒ IJt j Jt j t d ƒ | IJt j t d ƒ t j IJy5 d d l } | j d d d	 d
 d g d t j ƒWn t t f k
 rÙ n Xt j t d ƒ IJt j Jt j | IJy d d l	 } | j
 ƒ  Wq3t k
 r.q3Xn XWd t j d ƒ Xd S(   sœ    Calls callback and catches all exceptions.
    When something bad happens prints a long error message
    with bug report information and exits the programsB   Sorry, command-not-found has crashed! Please file a bug report at:s9   Please include the following information with the report:s   command-not-found version: %ss   Python version: %d.%d.%d %s %diÿÿÿÿNt   lsb_releases   -is   -ds   -rs   -ct   stdouts   Exception information:i   (   t	   Exceptiont   syst   stderrt   _t   version_infot
   subprocesst   callt   ImportErrort   OSErrort	   tracebackt	   print_exct   exit(   t   callbackt   bug_report_urlt   versiont   exR   R   (    (    s8   /usr/lib/python2.7/dist-packages/CommandNotFound/util.pyt   crash_guard   s0    )t   gettext_wrapperR   (	   t   gettextt   localeR   t   translationt   Truet   ugettextR   R   t   __all__(    (    (    s8   /usr/lib/python2.7/dist-packages/CommandNotFound/util.pyt   <module>   s   	