diff --git a/pymatgen/io/abinitio/flows.py b/pymatgen/io/abinitio/flows.py
index <HASH>..<HASH> 100644
--- a/pymatgen/io/abinitio/flows.py
+++ b/pymatgen/io/abinitio/flows.py
@@ -393,9 +393,11 @@ class AbinitFlow(Node):
             #todo
             info_msg = 'We encountered an abi critial envent that could not be fixed'
             print(info_msg)
-            if not self._waited:
+            try:
+                print('waited ', self._waited, ' cycles')
+            except AttributeError:
                 self._waited = 0
-            print('waited ', self._waited, ' cycles')
+                print('waited ', self._waited, ' cycles')
             for error in task.abi_errors:
                 print('trying to fix:')
                 print(error)
trying to wait for the moon to change phase


Former-commit-id: e5fab0f<I>ceffbff3cb<I>a<I>b<I> [formerly b<I>afd<I>d<I>bcb7ab<I>e7e<I>cf]
Former-commit-id: e3f<I>c<I>b2de<I>d<I>c3b<I>ad<I>da