<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def influx_query_(self, q):
 """ Runs an Influx db query """

        if self.influx_cli is None:
            self.err(
                self.influx_query_,
                "No database connected. Please initialize a connection")
            return
        try:
            return self.influx_cli.query(q)
        except Exception as e:
            self.err(e, self.influx_query_,
                     "Can not query database")