Exception doesn't have strerr
Fix crash when crashing when translation not found
This commit is contained in:
parent
a702c0bd4d
commit
4eb61ec66a
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ try:
|
|||
i18n = gettext.translation('kdeconnect-nautilus-extension')
|
||||
_ = i18n.gettext
|
||||
except (IOError, OSError) as e:
|
||||
print('kdeconnect-nautilus: {0}'.format(e.strerr))
|
||||
print('kdeconnect-nautilus: {0}'.format(e))
|
||||
i18n = gettext.translation('kdeconnect-nautilus-extension', fallback=True)
|
||||
_ = i18n.gettext
|
||||
|
||||
|
|
Loading…
Reference in a new issue