...
 
Commits (2)
......@@ -51,7 +51,7 @@ taters.locations.ftp( 'ftp://user:password@example.tld/public_html/' ).destinati
To install the latest (dev) version first clone this repository using git:
```sh
git clone https://github.com/Nimdraug/taters.git
git clone https://gitlab.com/nimdraug/taters.git
```
then install the library using the setup.py script
......@@ -71,4 +71,4 @@ and then run the post-install.sh script to ensure you have the required node.js
Please note that taters is currently in alpha development phase. Meaning that things can change at any moment
as the code evolves. It is, however, used in live situations and will therefore remain fairly stable.
So feel free to use this in your projects, but just beware, and please [report any bugs](https://github.com/Nimdraug/taters/issues) you might encounter.
So feel free to use this in your projects, but just beware, and please [report any bugs](https://gitlab.com/nimdraug/taters/issues) you might encounter.
......@@ -246,7 +246,10 @@ def uppercase( f ):
p = pipe( f.name )
def run():
read_all_to( f, lambda chunk: p.w.write( chunk.upper() ) )
try:
read_all_to( f, lambda chunk: p.w.write( chunk.upper() ) )
except Exception as e:
p.w.write( e )
p.w.close()
threading.Thread( target = run ).start()
......@@ -262,7 +265,10 @@ def sh_builder( cmd, f, *a, **kw ):
p = pipe( f.name )
def run():
cmd( *a, _in = f, _out = p.w, **kw )
try:
cmd( *a, _in = f, _out = p.w, **kw )
except Exception as e:
p.w.write( e )
p.w.close()
threading.Thread( target = run ).start()
......@@ -279,7 +285,10 @@ def lessc( f, *a, **kw ):
p = pipe( f.name )
def run():
sh.lessc( '-', *a, _in = f, _out = p.w, **kw )
try:
sh.lessc( '-', *a, _in = f, _out = p.w, **kw )
except Exception as e:
p.w.write( e )
p.w.close()
threading.Thread( target = run ).start()
......@@ -297,7 +306,10 @@ def sass( f, *a, **kw ):
p = pipe( f.name )
def run():
sh.sass( '--stdin', *a, _in = f, _out = p.w, **kw )
try:
sh.sass( '--stdin', *a, _in = f, _out = p.w, **kw )
except Exception as e:
p.w.write( e )
p.w.close()
threading.Thread( target = run ).start()
......@@ -314,7 +326,10 @@ def postcss( f, *a, **kw ):
p = pipe( f.name )
def run():
sh.postcss( *a, _in = f, _out = p.w, **kw )
try:
sh.postcss( *a, _in = f, _out = p.w, **kw )
except Exception as e:
p.w.write( e )
p.w.close()
threading.Thread( target = run ).start()
......@@ -331,7 +346,10 @@ def uglifyjs( file_paths, *a, **kw ):
p = pipe( '' )
def run():
sh.uglifyjs( file_paths, *a, _out = p.w, **kw )
try:
sh.uglifyjs( file_paths, *a, _out = p.w, **kw )
except Exception as e:
p.w.write( e )
p.w.close()
threading.Thread( target = run ).start()
......