~brian-murray/ubuntu/natty/apport/rr-if-idontknow

« back to all changes in this revision

Viewing changes to kde/apport-kde

  • Committer: Martin Pitt
  • Date: 2011-02-04 14:41:46 UTC
  • mfrom: (1369.34.52 trunk)
  • Revision ID: martin.pitt@canonical.com-20110204144146-o0fq0kh4shzsutr3
new upstream release 1.17.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
                                KLocalizedString)
29
29
    from PyKDE4.kdeui import (KApplication, KNotification, KMessageBox, KIcon,
30
30
                              KStandardGuiItem)
 
31
    import apport
31
32
    import apport.ui
32
33
    from apport import unicode_gettext as _
33
34
except ImportError, e:
34
35
    # this can happen while upgrading python packages
35
 
    print >> sys.stderr, 'Could not import module, is a package upgrade in progress? Error:', e
36
 
    sys.exit(1)
 
36
    apport.fatal('Could not import module, is a package upgrade in progress?  Error: %s', str(e))
37
37
 
38
38
def translate(self, prop):
39
39
    '''Reimplement method from uic to change it to use gettext.'''
433
433
 
434
434
if __name__ == '__main__':
435
435
    if not os.environ.get('DISPLAY'):
436
 
        print >> sys.stderr, 'This program needs a running X session. Please see "man apport-cli" for a command line version of Apport.'
437
 
        sys.exit(1)
 
436
        apport.fatal('This program needs a running X session. Please see "man apport-cli" for a command line version of Apport.')
438
437
 
439
438
    appName = 'apport-kde'
440
439
    catalog = 'apport'