Skip to content
Browse files

Ignore TOML failing to parse Cargo.lock, due to a bug

  • Loading branch information...
vvuk committed Aug 12, 2016
1 parent 59da96d commit e7dd579ebf14317e284f4f9641e4bf0b8f99022f
Showing with 12 additions and 2 deletions.
  1. +12 −2 python/tidy/servo_tidy/
@@ -298,8 +298,18 @@ def find_reverse_dependencies(dependency, version, content):
# package names to be neglected (as named by cargo)
exceptions = ["lazy_static"]

import toml
content = toml.loads(contents)
# has a bug(?) that we trip up in [metadata] sections;
# see
# This should only affect a very few lines (that have embedded ?branch=...),
# and most of them won't be in the repo
import toml
content = toml.loads(contents)
print "WARNING!"
print "WARNING! toml parsing failed for Cargo.lock, but ignoring..."
print "WARNING!"
raise StopIteration

packages = {}
for package in content.get("package", []):

0 comments on commit e7dd579

Please sign in to comment.
You can’t perform that action at this time.