X-Git-Url: https://git.phdru.name/?p=phdru.name%2Fcgi-bin%2Fblog-ru%2Fsearch-tags.git;a=blobdiff_plain;f=search-tags.py;h=4f6810adc65a34a95c08ca3b843e6eb5316569d0;hp=c0919660befab6331cff2de6532e3b0b5c01b642;hb=3db3a1c52868d865cac4e96d6521f62feb15cf77;hpb=553446ee8da7062c60915a2078d1c7311e85d612 diff --git a/search-tags.py b/search-tags.py index c091966..4f6810a 100755 --- a/search-tags.py +++ b/search-tags.py @@ -7,7 +7,7 @@ __copyright__ = "Copyright (C) 2014-2017 PhiloSoft Design" __license__ = "GNU GPL" import cgi, sys -from parsimonious import ParseError +from ometa.runtime import ParseError from html.response import redirect, response from parser import parser @@ -20,7 +20,7 @@ if not form.has_key('q'): else: q = form['q'].value try: - tree = parser.compile(q) + tree = parser.parse(q) except ParseError: status = "400 Bad request" title = "Error!"