Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'replace' #4

Open
ampledata opened this issue Oct 7, 2022 · 0 comments
Open

AttributeError: 'NoneType' object has no attribute 'replace' #4

ampledata opened this issue Oct 7, 2022 · 0 comments

Comments

@ampledata
Copy link
Collaborator

 aiscot_aishub    File "/usr/lib/python3/dist-packages/pytak/client_functions.py", line 264, in main
 aiscot_aishub      await clitool.run()
 aiscot_aishub    File "/usr/lib/python3/dist-packages/pytak/classes.py", line 275, in run
 aiscot_aishub      self.run_tasks()
 aiscot_aishub    File "/usr/lib/python3/dist-packages/pytak/classes.py", line 268, in run_tasks
 aiscot_aishub      self.run_task(task)
 aiscot_aishub    File "/usr/lib/python3/dist-packages/pytak/classes.py", line 262, in run_task
 aiscot_aishub      self.running_tasks.add(asyncio.ensure_future(task.run()))
 aiscot_aishub  Traceback (most recent call last):
 aiscot_aishub    File "/usr/lib/python3/dist-packages/aiscot/classes.py", line 204, in run
 aiscot_aishub      await self.get_aishub_feed(session, aishub_url)
 aiscot_aishub    File "/usr/lib/python3/dist-packages/aiscot/classes.py", line 182, in get_aishub_feed
 aiscot_aishub      await self.handle_data(ships)
 aiscot_aishub    File "/usr/lib/python3/dist-packages/aiscot/classes.py", line 164, in handle_data
 aiscot_aishub      event: str = aiscot.ais_to_cot(msg, self.config, known_craft=known_craft)
 aiscot_aishub    File "/usr/lib/python3/dist-packages/aiscot/functions.py", line 219, in ais_to_cot
 aiscot_aishub      cot: ET.ElementTree = ais_to_cot_xml(craft, config, known_craft)
 aiscot_aishub    File "/usr/lib/python3/dist-packages/aiscot/functions.py", line 101, in ais_to_cot_xml
 aiscot_aishub      ais_name: str = craft.get("name", craft.get("NAME", "")).replace("@", "").strip()
 aiscot_aishub  AttributeError: 'NoneType' object has no attribute 'replace'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant