Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connectionsPath: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Lawrence D'Oliveiro
Newsgroups: comp.lang.python
Subject: Re: FileNotFoundError thrown due to (Posting On Python-List
Prohibited)
Date: Mon, 11 Nov 2024 21:05:27 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Message-ID:
References: <87v7wt986z.fsf@zedat.fu-berlin.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 11 Nov 2024 22:05:27 +0100 (CET)
Injection-Info: dont-email.me; posting-host="13b7eac62ff6457352a541d5a235d1e2";
logging-data="1241983"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/pe+5akMOS66cS3wgVwBSE"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:bVXJX1jkSLZDNMDPRAi1Awh71e0=
Bytes: 1602
On Mon, 11 Nov 2024 15:05:56 +0100, Loris Bennett wrote:
> except FileNotFoundError:
> print(f"Error: configuration file {args.config_file} not found.
> Exiting.")
> sys.exit(0)
>
> and when I ran the program I got the error
>
> Error: configuration file /usr/local/etc/sc_mailer not found.
> Exiting.
>
> However, this file *does* exist and *can* be read.
This is your own fault for intercepting the exception and printing out
your own misleading error message. If you had left the exception uncaught,
it would have printed out the right file name.