Commit 14cdd8e2 authored by Albert Vaca Cintora's avatar Albert Vaca Cintora
Browse files

Exception doesn't have strerr

Fix crash when crashing when translation not found
parent e2d175f2
Pipeline #17679 failed with stage
in 6 minutes and 21 seconds
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment