@autorest/python 6.7.1 → 6.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -52,6 +52,9 @@ class BlackScriptPlugin(Plugin): # pylint: disable=abstract-method
52
52
  )
53
53
  except NothingChanged:
54
54
  pass
55
+ except: # pylint: disable=bare-except
56
+ _LOGGER.error("Error: failed to format %s", file)
57
+ raise
55
58
  self.write_file(file, file_content)
56
59
 
57
60
 
@@ -6,7 +6,6 @@
6
6
  import sys
7
7
  import logging
8
8
  import json
9
- import shutil
10
9
 
11
10
  from collections import defaultdict
12
11
  from pathlib import Path
@@ -174,10 +173,6 @@ class MultiAPI(ReaderAndWriter): # pylint: disable=abstract-method
174
173
  user_specified_default_api=self.user_specified_default_api,
175
174
  )
176
175
 
177
- # In case we are transitioning from a single api generation, clean old folders
178
- shutil.rmtree(str(self.output_folder / "operations"), ignore_errors=True)
179
- shutil.rmtree(str(self.output_folder / "models"), ignore_errors=True)
180
-
181
176
  multiapi_serializer = self.serializer
182
177
  multiapi_serializer.serialize(code_model, self.no_async)
183
178
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autorest/python",
3
- "version": "6.7.1",
3
+ "version": "6.7.2",
4
4
  "description": "The Python extension for generators in AutoRest.",
5
5
  "main": "index.js",
6
6
  "repository": {