mirror of
https://github.com/erkin/ponysay.git
synced 2025-03-22 11:47:11 +01:00
bug fix: failed if a environment variable was not defined
Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
parent
49b3f80f8a
commit
df5cb29bc5
1 changed files with 5 additions and 1 deletions
|
@ -198,7 +198,11 @@ class Ponysay():
|
|||
|
||||
|
||||
def share(file):
|
||||
return [(parsefile(item) + file) for item in [
|
||||
def cat(a, b):
|
||||
if a is None:
|
||||
return None
|
||||
return a + b
|
||||
return [cat(parsefile(item), file) for item in [
|
||||
'$XDG_DATA_HOME/ponysay/',
|
||||
'$HOME/.local/share/ponysay/',
|
||||
'/usr/share/ponysay/',
|
||||
|
|
Loading…
Add table
Reference in a new issue