We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There are differences in the output/error handling for different commands:
fotoobo fgt get version
fotoobo fmg get version
The text was updated successfully, but these errors were encountered:
Create a custom error class that inherits from the built-in Exception class. Would belong in /helpers. (error helper)
class CustomError(Exception): def __init__(self, error_message, error_type=None): self.error_message = error_message self.error_type = error_type def __str__(self): if self.error_type: return f"{self.error_type}: {self.error_message}" else: return self.error_message # Example usage try: # Your code that might raise an error raise CustomError("Error", "Error") except CustomError as e: print(e)
Sorry, something went wrong.
No branches or pull requests
There are differences in the output/error handling for different commands:
fotoobo fgt get version
presents the data in a nice table, even in the case of failurefotoobo fmg get version
will just print the error (in case of error), even no "Error"-panelThe text was updated successfully, but these errors were encountered: