mirror of
https://github.com/weewx/weewx.git
synced 2026-04-24 03:27:03 -04:00
Keep going even if the client rejects a post
This commit is contained in:
@@ -276,6 +276,11 @@ def main() :
|
||||
print >>sys.stderr, "Aborted."
|
||||
wlog.slog(syslog.LOG_ERR, "%s ...error %s. Aborting." % (timestamp_to_string(record['dateTime']), e))
|
||||
exit("Failed post")
|
||||
except weewx.restx.AbortedPost as e:
|
||||
print >>sys.stderr, " ... not published."
|
||||
print "Reason: ", e
|
||||
wlog.slog(syslog.LOG_ERR, "%s ...not published. Reason '%s'" %
|
||||
(timestamp_to_string(record['dateTime']), e))
|
||||
except IOError as e:
|
||||
print >>sys.stderr, " ... not published."
|
||||
print "Reason: ", e
|
||||
|
||||
Reference in New Issue
Block a user