--- a/infinity/core.py
+++ b/infinity/core.py
@@ -319,7 +319,7 @@
             ids[idsfile] = idsobj
         except Exception, e:
             traceback.print_exc()
-            print e
+            print(e)
             return id
 
     try: