Anonymous avatar Anonymous committed e0658c5

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

Comments (0)

Files changed (3)

engine/storage.py

         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.")
     

Binary file modified.

             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
     
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.