|
|
@@ -64,5 +64,8 @@ data = {"value": list_name}
|
|
|
|
|
|
response = requests.post(f"{owncast_url}/api/admin/config/chat/suggestedusernames", data=json.dumps(data), auth=HTTPBasicAuth(admin_name, admin_passwd))
|
|
|
|
|
|
-for thing in response:
|
|
|
- print(thing.decode())
|
|
|
+try:
|
|
|
+ for do_the_thing in response:
|
|
|
+ print(do_the_thing.decode())
|
|
|
+except Exception as error:
|
|
|
+ print(f'Oops, something went wrong: {error}')
|