Re: Python os.system module handle errors

From: Volkan YAZICI <yazicivo(at)ttnet(dot)net(dot)tr>
To: Vadim Pestovnikov <vpestovnikov(at)yak(dot)ca>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Python os.system module handle errors
Date: 2006-05-11 09:05:24
Message-ID: 20060511090524.GB223@alamut
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Steve Burrows 2006-05-11 09:57:18 Re: Backing up large databases
Previous Message sandhya 2006-05-11 07:45:52 Re: regarding image files in DB