[pyupgrade] Fix panic caused by handling of octals in UP012
#24390
+10
−2
Loading