modal.Error
class Error(Exception)
Base class for all Modal errors. See modal.exception
for the specialized
error classes.
Usage
import modal
try:
...
except modal.Error:
# Catch any exception raised by Modal's systems.
print("Responding to error...")