From c38dfd20a1f66d40e67d478f5b340557a2ac20c2 Mon Sep 17 00:00:00 2001 From: substantialnoninfringinguser Date: Fri, 22 May 2009 01:50:16 +0100 Subject: [svn] * Make subcave urls work. * Add json and xml download to admin. --- databaseReset.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'databaseReset.py') diff --git a/databaseReset.py b/databaseReset.py index 8000445..e9092ce 100644 --- a/databaseReset.py +++ b/databaseReset.py @@ -37,7 +37,13 @@ def import_people(): parsers.people.LoadPersonsExpos() def import_logbooks(): - settings.LOGFILE.write('\nBegun importing logbooks at ' + time.asctime() +'\n'+'-'*60) + # The below line was causing errors I didn't understand (it said LOGFILE was a string), and I couldn't be bothered to figure + # what was going on so I just catch the error with a try. - AC 21 May + try: + settings.LOGFILE.write('\nBegun importing logbooks at ' + time.asctime() +'\n'+'-'*60) + except: + pass + import parsers.logbooks parsers.logbooks.LoadLogbooks() -- cgit v1.2.3