Explorar el Código

tau: fix a bug that matched RefIDs instead of local IDs when RefID starts with numbers equal to local ID

dasman hace 1 año
padre
commit
94eb311bb4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      bin/tau/tau-python/tau

+ 1 - 1
bin/tau/tau-python/tau

@@ -690,7 +690,7 @@ Examples:
             else:
                 print("Command prevented from running.")
                 exit(-1)
-        elif any(id == rfid[:len(id)] or id == rfid for rfid in refids):
+        elif any(id == rfid[:len(id)] for rfid in refids if len(id) > 2):
             refid = []
             for rid in refids:
                 if id == rid[:len(id)]: