[bucket]Fixed NameError.
Reported by @elad661.

Signed-off-by: Dimitri Molenaars <Tyrope@TyRope.nl>