📁
randomstuff.py
  • randomstuff.py
  • Clients
    • Client
    • AsyncClient
  • Data Classes
    • AIResponse
    • Joke
    • JokeFlags
    • Waifu
    • Weather
    • WeatherLocation
    • CurrentWeather
    • WeatherForecast
  • Sub modules
    • utils
  • Errors tree
    • Forbidden
      • BadAPIKey
      • PlanNotAllowed
    • ArgumentError
      • InvalidPlanError
      • InvalidVersionError
      • InvalidServerError
      • InvalidType
      • InvalidCityError
    • HTTPError
  • Brief
    • Warnings
    • Lists
    • Unique ID
    • Joke 101
    • FAQ
    • Changelogs
Powered by GitBook
On this page
  • Example
  • Suppressing warnings

Was this helpful?

  1. Brief

Warnings

PreviousHTTPErrorNextLists

Last updated 3 years ago

Was this helpful?

Warnings are what randomstuff.py (wrapper) uses to warn the user about possible issues without interrupting the actual program. They are different then errors as they don't stop your program.

These are simple print statements used to warn the user about certain threats or issues like outdated version, outdated method, deprecation warnings etc.

Example

To see how warnings look like, You can dive into your code and set kwarg in to an outdated version like "3" .

When you run the program, you will see that it prints in console that the version is outdated and you are advised to migrate to better version.

Suppressing warnings

Just in case you don't want these warnings, you can suppress them by setting to True in . These warnings won't be shown then.

Client
Client
version
suppress_warnings