QGIS/scripts
Julien 99637cc430 fix(PyQt5toPyQt6): check if object has an attribute id
Error fixed running the migration script on a certain plugin:

```python
Traceback (most recent call last):
  File "/usr/local/bin/pyqt5_to_pyqt6.py", line 892, in <module>
    raise SystemExit(main())
                     ^^^^^^
  File "/usr/local/bin/pyqt5_to_pyqt6.py", line 887, in main
    ret |= fix_file(filename, not args.qgis3_incompatible_changes, dry_run)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/bin/pyqt5_to_pyqt6.py", line 461, in fix_file
    visit_call(node, parent)
  File "/usr/local/bin/pyqt5_to_pyqt6.py", line 338, in visit_call
    and _node.args[0].func.id == "QDate"
        ^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Attribute' object has no attribute 'id'
```
2025-03-29 08:40:40 +10:00
..
2024-11-29 15:38:02 +01:00
2024-11-29 15:38:02 +01:00
2025-01-27 18:16:51 +01:00
2024-11-29 15:38:02 +01:00
2024-12-18 19:12:29 +10:00
2024-11-29 15:38:02 +01:00
2024-11-29 15:38:02 +01:00
2024-11-29 15:38:02 +01:00
2025-03-29 07:55:27 +10:00
2024-11-29 15:38:02 +01:00
2024-12-06 09:16:26 +01:00