We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3df808c commit a248ab5Copy full SHA for a248ab5
eng/automation/generate.py
@@ -111,11 +111,15 @@ def sdk_automation(input_file: str, output_file: str):
111
with open(input_file, "r") as fin:
112
config = json.load(fin)
113
114
- # typespec
115
- packages = sdk_automation_typespec(config)
116
- # autorest
117
- if not packages:
118
- packages = sdk_automation_autorest(config)
+ packages = []
+ try:
+ # typespec
+ packages = sdk_automation_typespec(config)
+ # autorest
119
+ if not packages:
120
+ packages = sdk_automation_autorest(config)
121
+ except Exception:
122
+ logging.error("[GENERATE] Code generation failed. Unknown exception", exc_info=True)
123
124
with open(output_file, "w", encoding="utf-8") as fout:
125
output = {
0 commit comments