From: Volkan YAZICI <yazicivo@ttnet.net.tr>
To: Vadim Pestovnikov <vpestovnikov@yak.ca>
Cc: pgsql-admin@postgresql.org
Subject: Re: Python os.system module handle errors
Date: Thu, 11 May 2006 12:05:24 +0300
Message-ID: <20060511090524.GB223@alamut> (raw)
In-Reply-To: <1B6B036445BFC94490C87AF12F102AD3144DC4@tofn-svr-exc-01.yak.ca>
References: <1B6B036445BFC94490C87AF12F102AD3144DC4@tofn-svr-exc-01.yak.ca>
On May 04 04:50, Vadim Pestovnikov wrote:
> When I create a database dump in python script and if there are some
> errors (user_name is not correct, db_name doesn't exist or something
> else) I need to send e-mail notification to admin. How can I handle
> these errors?
I don't think this has anything to do with PostgreSQL. IMHO you should
start with reading documentation of Python os module (especially
OSError exceptions part) and consult to a python related mailing list.
Regards.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: yazicivo@ttnet.net.tr, vpestovnikov@yak.ca
Subject: Re: Python os.system module handle errors
In-Reply-To: <20060511090524.GB223@alamut>
References: <1B6B036445BFC94490C87AF12F102AD3144DC4@tofn-svr-exc-01.yak.ca> <20060511090524.GB223@alamut>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox