Τη Τετάρτη, 28 Αυγούστου 2013 1:43:08 μ.μ. UTC+3, ο χρήστης Ferrous Cranus έγραψε: > Τη Τετάρτη, 28 Αυγούστου 2013 1:11:05 μ.μ. UTC+3, ο χρήστης ishish έγραψε: > > > > > http://wiki.python.org/moin/HandlingExceptions > > > > is this how you mean? > > > > try: > > #find the needed counter for the page URL > > if os.path.exists( path + page ) or os.path.exists( > cgi_path + page ): > > cur.execute('''SELECT ID FROM counters WHERE > url = %s''', page ) > > data = cur.fetchone() #URL is unique, > so should only be one > > except: > > print repr(query) > > print type(query) > > > > print repr(escaped_args) > > print type(escaped_args) > > > > > > but i cannot see the error_log because of constant scrolling of error output.
i try: tail -F /usr/local/apache/logs/error_log | grep nikos &' and see the follwing. if i dont grep at all i cannot stop the eroor output: i...@superhost.gr [~]# [Wed Aug 28 10:44:22 2013] [error] [client 108.162.231.120] File "/home/nikos/public_html/cgi-bin/metrites.py", line 173, in <module> [Wed Aug 28 10:44:22 2013] [error] [client 108.162.231.120] File "/home/nikos/public_html/cgi-bin/metrites.py", line 176, in <module> [Wed Aug 28 10:44:22 2013] [error] [client 108.162.231.120] File does not exist: /home/nikos/public_html/500.shtml -- http://mail.python.org/mailman/listinfo/python-list