Skip to content

Commit

Permalink
Merge pull request #1329 from regro/bug-pinning-none
Browse files Browse the repository at this point in the history
BUG make sure to remove any blank versions
  • Loading branch information
beckermr authored Dec 29, 2020
2 parents 7899aab + 8238fc0 commit f0214de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions conda_forge_tick/auto_tick.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def run(
except Exception as e:
# I am trying this bit of code to force these errors
# to be surfaced in the logs at the right time.
print("RERENDER ERROR: {e}", flush=True)
print(f"RERENDER ERROR: {e}", flush=True)
raise

# If we tried to run the MigrationYaml and rerender did nothing (we only
Expand Down Expand Up @@ -728,8 +728,9 @@ def create_migration_yaml_creator(migrators: MutableSequence[Migrator], gx: nx.D
current_pins = list(
map(lambda x: re.sub("[^0-9.]", "", x).rstrip("."), current_pins),
)
current_pins = [cp.strip() for cp in current_pins if cp.strip() != ""]
current_version = re.sub("[^0-9.]", "", current_version).rstrip(".")
if current_pins == [""]:
if not current_pins or current_version == "":
continue

current_pin = str(max(map(VersionOrder, current_pins)))
Expand Down

0 comments on commit f0214de

Please sign in to comment.