[kdeconnect] Nautilus extension fails because of wrong attribute used in code
Closed, InvalidPublic

Description

Linux: Arch

I have installed kdeconnect and it comes with the Nautilus extension, however I've been noticing that Nautilus does not give me any options to use kdeconnect features from the file manager.

Today when I started Nautilus from the terminal, I saw this traceback:

Traceback (most recent call last):
  File "/usr/share/nautilus-python/extensions/kdeconnect-share.py", line 37, in <module>
    i18n = gettext.translation('kdeconnect-nautilus-extension')
  File "/usr/lib/python3.8/gettext.py", line 588, in translation
    raise FileNotFoundError(ENOENT,
FileNotFoundError: [Errno 2] No translation file found for domain: 'kdeconnect-nautilus-extension'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/share/nautilus-python/extensions/kdeconnect-share.py", line 40, in <module>
    print('kdeconnect-nautilus: {0}'.format(e.strerr))
AttributeError: 'FileNotFoundError' object has no attribute 'strerr'

After opening the extension, I noticed that indeed the error was that there is a mistake in printing the strerror property of OSError. They used strerr instead of strerror. I verified this was the problem by updating the code to the correct property and now, the extension is working as exptected.

nicolasfella closed this task as Invalid.Apr 19 2020, 11:13 AM
nicolasfella added a subscriber: nicolasfella.

I'm sorry, this is not the place to report issues. Please use bugs.kde.org