Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1106,7 +1106,7 @@ def stop_channel(channel_id, resource_id):
|
|
| 1106 |
}
|
| 1107 |
|
| 1108 |
try:
|
| 1109 |
-
|
| 1110 |
print(f"Channel {channel_id} stopped successfully.")
|
| 1111 |
except Exception as e:
|
| 1112 |
print(f"An error occurred: {e}")
|
|
|
|
| 1106 |
}
|
| 1107 |
|
| 1108 |
try:
|
| 1109 |
+
app.state.drive_service.channels().stop(body=request_body).execute()
|
| 1110 |
print(f"Channel {channel_id} stopped successfully.")
|
| 1111 |
except Exception as e:
|
| 1112 |
print(f"An error occurred: {e}")
|