Update empire
parent
c8eaf07949
commit
e751a6d1ee
2
empire
2
empire
|
@ -721,7 +721,7 @@ def start_restful_api(empireMenu, suppress=False, username=None, password=None,
|
|||
listenerObject = main.listeners.loadedListeners[listener_type]
|
||||
# set all passed options
|
||||
for option, values in request.json.iteritems():
|
||||
if type(values) != int:
|
||||
if type(values) == str:
|
||||
values = values.encode('utf8')
|
||||
if option == "Name":
|
||||
listenerName = values
|
||||
|
|
Loading…
Reference in New Issue