tjoskar / script.episodeHunter

Kodi (aka. XBMC) plugin for Episodehunter
GNU General Public License v2.0
12 stars 0 forks source link

Error dialog raise an error when trying to present another error #23

Closed tjoskar closed 8 years ago

tjoskar commented 8 years ago

Some users encounter this error:

Traceback (most recent call last):
File default.py, line 36, in menu
  sync.Series(connection).sync()
  File:  resources/lib/sync/sync_series.py, line 28, in sync
    self.create_error_dialog(error.value)
      File resources/lib/sync/sync.py, line 25, in create_error_dialog
        dialog.create_error_dialog(*msg)
          File resources/lib/gui/dialog.py, line 18, in create_error_dialog
            create_ok(*msg)
              File resources/lib/gui/dialog.py, line 12, in create_ok
                return create().ok(config.__NAME__, *msg)
TypeError: argument "line2" for method "ok" must be unicode or str

An easy fix could be to cast all lines to str but it would be better to find the source of the error.