Skip to content
This repository was archived by the owner on May 16, 2023. It is now read-only.
This repository was archived by the owner on May 16, 2023. It is now read-only.

device list and folder list crash #7

@doronbehar

Description

@doronbehar

Traceback for stman device list:

Traceback (most recent call last):
  File "/usr/bin/stman", line 11, in <module>
    load_entry_point('syncthingmanager==0.1.0', 'console_scripts', 'stman')()
  File "/usr/lib/python3.6/site-packages/syncthingmanager/__init__.py", line 810, in main
    st._device_list()
  File "/usr/lib/python3.6/site-packages/syncthingmanager/__init__.py", line 469, in _device_list
    config = self.system.config()
  File "/usr/lib/python3.6/site-packages/syncthing/__init__.py", line 279, in config
    return self.get('config')
  File "/usr/lib/python3.6/site-packages/syncthing/__init__.py", line 180, in get
    return_response, raw_exceptions)
  File "/usr/lib/python3.6/site-packages/syncthing/__init__.py", line 250, in _request
    if isinstance(json_data, dict) and j.get('error'):
NameError: name 'j' is not defined

Traceback for stman folder list:

Traceback (most recent call last):
  File "/usr/bin/stman", line 11, in <module>
    load_entry_point('syncthingmanager==0.1.0', 'console_scripts', 'stman')()
  File "/usr/lib/python3.6/site-packages/syncthingmanager/__init__.py", line 861, in main
    st._folder_list()
  File "/usr/lib/python3.6/site-packages/syncthingmanager/__init__.py", line 566, in _folder_list
    config = self.system.config()
  File "/usr/lib/python3.6/site-packages/syncthing/__init__.py", line 279, in config
    return self.get('config')
  File "/usr/lib/python3.6/site-packages/syncthing/__init__.py", line 180, in get
    return_response, raw_exceptions)
  File "/usr/lib/python3.6/site-packages/syncthing/__init__.py", line 250, in _request
    if isinstance(json_data, dict) and j.get('error'):
NameError: name 'j' is not defined

It is the first time I'm using syncthingmanager. I could use it only since python-syncthing was upgraded to 2.2.0 because of blakev/python-syncthing#18.

From my pour knowledge in python, this is a problem with python-syncthing, I just thought it should be reported here because I don't know how to reproduce it without syncthingmanager.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions