Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Log an error

src/b/3/b3-1.9.2/b3/parsers/iourt42.py   b3(Download)
    def startup(self):
        try:
            gamename = self.getCvar('gamename').getString()
            if gamename != 'q3urt42':
                self.error("the iourt42 B3 parser cannot be used with a game server other than Urban Terror 4.2")
        elif not client.id:
            # no client id, database must be down, do tempban
            self.error('Q3AParser.ban(): no client id, database must be down, doing tempban')
            return self.tempban(client, reason, '1d', admin, silent)
 

src/b/i/big-brother-bot-HEAD/b3/parsers/iourt42.py   big-brother-bot(Download)
    def startup(self):
        try:
            gamename = self.getCvar('gamename').getString()
            if gamename != 'q3urt42':
                self.error("the iourt42 B3 parser cannot be used with a game server other than Urban Terror 4.2")
        elif not client.id:
            # no client id, database must be down, do tempban
            self.error('Q3AParser.ban(): no client id, database must be down, doing tempban')
            return self.tempban(client, reason, '1d', admin, silent)