Skip to content

Commit

Permalink
fix: remove JSONDecodeError (Frewacom/pywalfox#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
Frewacom committed Jul 7, 2021
1 parent f84f9ae commit 9ae801b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pywalfox/config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

DAEMON_VERSION = '2.7.3'
DAEMON_VERSION = '2.7.4'

UNIX_SOCKET_PATH = '/tmp/pywalfox_socket'
UNIX_SOCKET_PATH_ALT = '/tmp/pywalfox_socket_alt'
Expand Down
5 changes: 2 additions & 3 deletions pywalfox/fetcher.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import logging
import json
from json.decoder import JSONDecodeError
import logging
from .config import PYWAL_COLORS_PATH

def get_pywal_colors():
Expand Down Expand Up @@ -30,7 +29,7 @@ def get_pywal_colors():
logging.error(error_message)
return (False, None, error_message)

except (IOError, JSONDecodeError):
except (IOError, ValueError):
error_message = 'Could not read colors from: %s' % PYWAL_COLORS_PATH
logging.error(error_message)
return (False, None, error_message)
Expand Down
10 changes: 10 additions & 0 deletions scripts/guix-dev-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

# Get path of script
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"

# Create install dir
mkdir -p ~/.local/lib/python3.8/site-packages

# Build and install executable
python3 $SCRIPT_DIR/../setup.py install --prefix=~/.local
4 changes: 4 additions & 0 deletions scripts/guix-dev-uninstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

rm -r ~/.local/lib/python3.8/site-packages/pywalfox-*
rm ~/.local/bin/pywalfox

0 comments on commit 9ae801b

Please sign in to comment.