Exception doesn't have strerr

Fix crash when crashing when translation not found
This commit is contained in:
Albert Vaca Cintora 2020-04-02 12:38:09 +02:00
parent e2d175f2a0
commit 14cdd8e2b5

View file

@ -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