How to use the deezloader.exceptions.QuotaExceeded function in deezloader

To help you get started, we’ve selected a few deezloader examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github An0nimia / DeezloaderAn0n_bot / dwsongs-normal.py View on Github external
else:
				sendMessage(chat_id, not_supported_links % link)

		else:
			sendMessage(chat_id, not_supported_links % link)

	except FileNotFoundError:
		sendMessage(
			chat_id, "Resend link please...",
			reply_to_message_id = message_id
		)

	except error.TimedOut:
		sendMessage(chat_id, "Retry after a few minutes")

	except exceptions.QuotaExceeded:
		sendMessage(chat_id, "Please send the link %s again :(" % link)

	except exceptions.AlbumNotFound:
		sendMessage(chat_id, "Album %s didn't find on Deezer :(" % link)
		sendMessage(chat_id, "Try to search it throught inline mode or search the link on Deezer")

	except Exception as a:
		logging.error(a)
		logging.error(quality)
		logging.error(link)

		sendMessage(
			chat_id, "OPS :( Something went wrong please send to @An0nimia this link: {} {}, if this happens again".format(link, quality)
		)

	if done == 1: