Fix new pylint issues

Fix C1803 - use-implicit-booleaness-not-comparison

Change-Id: Ia6fe8483ab76c6b58ca983b7c7f95b48e97ad67b
This commit is contained in:
Gregory Thiemonge 2021-11-29 13:02:16 +01:00
parent 237d443649
commit 5135d70aaf
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ class AmphoraStatsController(base.BaseController):
stats = self.repositories.get_amphora_stats(context.session,
self.amp_id)
if stats == []:
if not stats:
raise exceptions.NotFound(resource='Amphora stats for',
id=self.amp_id)