Skip to content

Commit e893f58

Browse files
Prevent error and update release message.
1 parent fec3c0f commit e893f58

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

adabot/circuitpython_bundle.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,11 @@ def push_updates(bundle_path):
148148

149149
def get_contributors(repo, commit_range):
150150
output = StringIO()
151-
git.log("--pretty=tformat:%H,%ae,%ce", commit_range, _out=output)
151+
try:
152+
git.log("--pretty=tformat:%H,%ae,%ce", commit_range, _out=output)
153+
except sh.ErrorReturnCode_128:
154+
print("Skipping contributors for:", repo)
155+
pass
152156
output = output.getvalue().strip()
153157
contributors = {}
154158
if not output:
@@ -270,7 +274,7 @@ def new_release(bundle, bundle_path):
270274

271275
release_description.append("\n--------------------------\n")
272276

273-
release_description.append("The libraries in each release are compiled for all recent major versions of CircuitPython. Please download the one that matches your version of CircuitPython. You may need to update your CircuitPython if your version isn't available. For example, if you are running 2.1.0 you should update to 2.2.0 and get a bundle for 2.2.0.\n")
277+
release_description.append("The libraries in each release are compiled for all recent major versions of CircuitPython. Please download the one that matches the major version of your CircuitPython. For example, if you are running 3.0.0 you should download the `3.x` bundle.\n")
274278

275279
release_description.append("To install, simply download the matching zip file, unzip it, and copy the lib folder onto your CIRCUITPY drive. Non-express boards such as the [Trinket M0](https://www.adafruit.com/product/3500), [Gemma M0](https://www.adafruit.com/product/3501) and [Feather M0 Basic](https://www.adafruit.com/product/2772) will need to selectively copy files over.")
276280

0 commit comments

Comments
 (0)