Skip to content

Reference for ultralytics/utils/errors.py

Note

Full source code for this file is available at https://github.com/ultralytics/ultralytics/blob/main/ultralytics/utils/errors.py. Help us fix any issues you see by submitting a Pull Request 🛠️. Thank you 🙏!


ultralytics.utils.errors.HUBModelError

Bases: Exception

Source code in ultralytics/utils/errors.py
class HUBModelError(Exception):

    def __init__(self, message='Model not found. Please check model URL and try again.'):
        """Create an exception for when a model is not found."""
        super().__init__(emojis(message))

__init__(message='Model not found. Please check model URL and try again.')

Create an exception for when a model is not found.

Source code in ultralytics/utils/errors.py
def __init__(self, message='Model not found. Please check model URL and try again.'):
    """Create an exception for when a model is not found."""
    super().__init__(emojis(message))




Created 2023-07-16, Updated 2023-08-07
Authors: glenn-jocher (5), Laughing-q (1)