Exception doesn't have strerr
Fix crash when crashing when translation not found
This commit is contained in:
parent
e2d175f2a0
commit
14cdd8e2b5
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