m8chaa commited on
Commit
3613e83
·
verified ·
1 Parent(s): 75eae6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1106,7 +1106,7 @@ def stop_channel(channel_id, resource_id):
1106
  }
1107
 
1108
  try:
1109
- 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}")
 
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}")