Opened 7 years ago

Closed 7 years ago

#2913 closed bug (Fixed)

[Notification] ValueError: invalid literal for int() with base 10

Reported by: Cas Owned by:
Priority: minor Milestone: 1.3.15
Component: Core Version: develop
Keywords: Cc:

Description

The Notification plugin threw this error when changing settings in WebUI Preferences.

develop HEAD @ [41fed16d0888754]

15:31:58.132 [ERROR   ][deluge.ui.client                   :157 ] RPCError Message Received!
--------------------------------------------------------------------------------
RPCRequest: notifications.set_config({u'smtp_port': u'', u'smtp_recipients': [], u'smtp_tls': False, u'smtp_enabled': False, u'subscriptions': {u'email': []}})
--------------------------------------------------------------------------------
ValueError
invalid literal for int() with base 10: '': Traceback (most recent call last):
  File "/home/ubuntu/deluge.git/deluge/core/rpcserver.py", line 293, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
  File "/home/ubuntu/deluge.git/deluge/plugins/Notifications/deluge/plugins/notifications/core.py", line 208, in set_config
    self.config[key] = config[key]
  File "/home/ubuntu/deluge.git/deluge/config.py", line 148, in __setitem__
    return self.set_item(key, value)
  File "/home/ubuntu/deluge.git/deluge/config.py", line 189, in set_item
    value = oldtype(value)
ValueError: invalid literal for int() with base 10: ''

--------------------------------------------------------------------------------
15:31:58.133 [ERROR   ][deluge.ui.web.json_api             :1172] [Failure instance: Traceback (failure with no frames): <class 'deluge.error.WrappedException'>: invalid literal for int() with base 10: ''
Traceback (most recent call last):
  File "/home/ubuntu/deluge.git/deluge/core/rpcserver.py", line 293, in dispatch
    ret = self.factory.methods[method](*args, **kwargs)
  File "/home/ubuntu/deluge.git/deluge/plugins/Notifications/deluge/plugins/notifications/core.py", line 208, in set_config
    self.config[key] = config[key]
  File "/home/ubuntu/deluge.git/deluge/config.py", line 148, in __setitem__
    return self.set_item(key, value)
  File "/home/ubuntu/deluge.git/deluge/config.py", line 189, in set_item
    value = oldtype(value)
ValueError: invalid literal for int() with base 10: ''

]
None

Change History (1)

comment:1 Changed 7 years ago by Cas

  • Milestone changed from 2.0 to 1.3.15
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed: develop [bc50f6e5f695] and 1.3 [f870741d9de3]

Note: See TracTickets for help on using tickets.