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 a702c0bd4d
commit 4eb61ec66a

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