diff --git a/plinth/modules/dynamicdns/__init__.py b/plinth/modules/dynamicdns/__init__.py index b895e37f8..64ccc9539 100644 --- a/plinth/modules/dynamicdns/__init__.py +++ b/plinth/modules/dynamicdns/__init__.py @@ -271,8 +271,8 @@ def set_status(domain, result, ip_address, error=None): 'domain': domain['domain'], 'result': result, 'ip_address': ip_address, - 'error_code': error.__class__.__name__ if error else None, - 'error_message': error.args[0] if error and error.args else None, + 'error_code': str(error.__class__.__name__) if error else None, + 'error_message': str(error.args[0]) if error and error.args else None, 'timestamp': int(time.time()), } kvstore.set('dynamicdns_status', json.dumps(status))