When neither consul was within the city , their civic duties were assumed by the praetor urbanus ( city prefect ) . When neither consul was within the city , their civic duties were assumed by the praetor urbanus .