Fix PEP8 warnings.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -649,7 +649,7 @@ class DocumentVersion(models.Model):
|
||||
self.mimetype, self.encoding = get_mimetype(
|
||||
file_object=file_object
|
||||
)
|
||||
except:
|
||||
except Exception:
|
||||
self.mimetype = ''
|
||||
self.encoding = ''
|
||||
finally:
|
||||
|
||||
Reference in New Issue
Block a user