Revert "Disable bot check when archiving"
This reverts commit dd2a9aff0701916488b8c85bf906af1bbf27be79.
Reason for revert: This was only a problem on our branch builders, remove again on master
Bug: 126871526
Change-Id: I46d15b60cbaa5b9baaf43e7de507976c0aa6a64c
diff --git a/tools/archive.py b/tools/archive.py
index 5c0c231..c842c69 100755
--- a/tools/archive.py
+++ b/tools/archive.py
@@ -92,9 +92,8 @@
def Main():
(options, args) = ParseOptions()
- # TODO(126871526): Fix the is_bot check.
- # if not utils.is_bot() and not options.dry_run:
- # raise Exception('You are not a bot, don\'t archive builds')
+ if not utils.is_bot() and not options.dry_run:
+ raise Exception('You are not a bot, don\'t archive builds')
if utils.is_old_bot():
print("Archiving is disabled on old bots.")