Changeset 13986 in genesis for tools/gformat.py


Ignore:
Timestamp:
Sep 22, 2017, 6:35:31 PM (7 years ago)
Author:
www
Message:

Add time to read error message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r13985 r13986  
    14921492  form = urlparse.parse_qs(environ['QUERY_STRING']) if environ.has_key('QUERY_STRING') else None
    14931493  if form and form.has_key("action") and "update" in form["action"]:
     1494    refresh_rate = 5
    14941495    output = "[INFO] Updating subverion, please wait...\n"
    14951496    output += subprocess.Popen([SVN, 'cleanup', "%s/.." % NODE_DIR], stderr=subprocess.STDOUT, stdout=subprocess.PIPE).communicate()[0]
     
    14991500    except:
    15001501        output += traceback.format_exc()
     1502        refresh_rate = 120
    15011503        pass
    1502     output += "[INFO] All done, redirecting in 5 seconds"
     1504    output += "[INFO] All done, redirecting in %s seconds" % refresh_rate
    15031505    response_headers += [
    1504       ('Refresh', '5; url=.'),
     1506      ('Refresh', '%s; url=.' % refresh_rate),
    15051507    ]
    15061508  else:
Note: See TracChangeset for help on using the changeset viewer.