does not seem to have been a problem in practice)
- Prune -7 call errors and automatically reprocess them (with a
strike out counter of 3)--this requires better error parsing.
- - IOError should be aggregated, right now contains custom string
- that makes this not possible. Partition on a colon.
- Replace gaierror with a more descriptive name (this is a DNS error)
- Stronger skips means that backup failures should also be avoided
- Distinguish between types of backup failures
d = deploy.ProductionCopy(".")
if os.path.exists(".scripts/blacklisted"):
reason = open(".scripts/blacklisted").read()
- print reason
- raise BlacklistedError(reason)
+ # ignore blank blacklisted files
+ if reason:
+ print reason
+ raise BlacklistedError(reason)
+ else:
+ logging.warning("Application was blacklisted, but no reason was found");
d.verify()
d.verifyTag(options.srv_path)
d.verifyGit(options.srv_path)
except MyErrorWithHTML:
assert get_exception_name(traceback.format_exc()) == "MyErrorWithHTML"
+def test_get_exception_name_withstr2():
+ try:
+ raise Exception("This is extra info we don't care about");
+ except Exception:
+ assert get_exception_name(traceback.format_exc()) == "Exception"
continue
if cue:
cue = False
- if line[-1] == ":":
- result = line[:-1]
- else:
- result = line
- return result
+ return line.partition(':')[0]
return result
def get_dir_uid(dir):