1. Gabriel Olivério
  2. seeti

Commits

Gabriel Oliverio  committed e0658c5

Corrigido bug no arquivo seeti.py, que gerava exceção ao tentar escrever a exceções NotImplementedError em sys.stderr.

  • Participants
  • Parent commits b4c0908
  • Branches default

Comments (0)

Files changed (3)

File engine/storage.py

View file
         return False
     
     def close(self):
-        raise NotImplementedError()
+        raise NotImplementedError("This command was not implemented... yet.")
     
     def open(self):
-        raise NotImplementedError()
+        raise NotImplementedError("This command was not implemented... yet.")
     
     def restart(self):
-        raise NotImplementedError()
+        raise NotImplementedError("This command was not implemented... yet.")
     

File engine/storage.pyc

Binary file modified.

File seeti.py

View file
             manager.restart()
         elif args.get('open'):
             manager.open()
-    except RuntimeError, e:
-        sys.stderr.write(e)
-    except Exception, e:
-        sys.stderr.write(e)
+    except NotImplementedError as e:
+        print e
+    except RuntimeError as e:
+        print e
+    except Exception as e:
+        print e