improvements on flake8 (#200)

This commit is contained in:
Markos Gogoulos
2021-05-27 17:40:52 +03:00
committed by GitHub
parent 6df942ac4e
commit 110695ae2f
5 changed files with 9 additions and 12 deletions

View File

@@ -537,7 +537,7 @@ class Media(models.Model):
"-y",
tf,
]
ret = helpers.run_command(command)
helpers.run_command(command)
if os.path.exists(tf) and helpers.get_file_type(tf) == "image":
with open(tf, "rb") as f:
@@ -657,7 +657,6 @@ class Media(models.Model):
"""Property used on serializers"""
ret = {}
chunks_ret = {}
if self.media_type not in ["video"]:
return ret