xep_0363: Ensure every form in disco#info is read
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
d6f7d32bbe
commit
4aa35c11ab
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ class XEP_0363(BasePlugin):
|
||||||
except (TypeError, ValueError):
|
except (TypeError, ValueError):
|
||||||
log.error('Invalid max size received from HTTP File Upload service')
|
log.error('Invalid max size received from HTTP File Upload service')
|
||||||
self.max_file_size = float('+inf')
|
self.max_file_size = float('+inf')
|
||||||
break
|
break
|
||||||
|
|
||||||
if input_file is None:
|
if input_file is None:
|
||||||
input_file = open(filename, 'rb')
|
input_file = open(filename, 'rb')
|
||||||
|
|
Loading…
Reference in a new issue