media file: fix exception on empty files.
This may happen if a user uploads from a source that returns an error HTTP response with no data.
This commit is contained in:
@@ -43,6 +43,8 @@ class MediaFile
|
||||
else
|
||||
:bin
|
||||
end
|
||||
rescue EOFError
|
||||
:bin
|
||||
end
|
||||
|
||||
def self.videos_enabled?
|
||||
|
||||
Reference in New Issue
Block a user