Fix starting with -c ""

This commit is contained in:
Florian Bruhin 2016-03-29 07:43:11 +02:00
parent 80433edce4
commit 32c9f2ac94

View File

@ -144,7 +144,7 @@ class HostBlocker:
Return: Return:
True if a read was attempted, False otherwise True if a read was attempted, False otherwise
""" """
if not os.path.exists(filename): if filename is None or not os.path.exists(filename):
return False return False
try: try: