mirror of
https://github.com/release-engineering/dist-git.git
synced 2025-02-23 15:02:54 +00:00
use more generic conversion to float for mtime
This commit is contained in:
parent
48f795801f
commit
3111958b1e
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ def main():
|
|||
if 'mtime' in form:
|
||||
mtime_str = form.getvalue('mtime')
|
||||
try:
|
||||
mtime = int(mtime_str)
|
||||
mtime = float(mtime_str)
|
||||
except ValueError:
|
||||
send_error('Invalid value sent for mtime "%s". Aborting.' % mtime_str,
|
||||
status='400 Bad Request')
|
||||
|
|
Loading…
Add table
Reference in a new issue