Skip to content

Commit 3c24f7a

Browse files
committed
Also catch SyntaxError for Haigha import
1 parent 181e84b commit 3c24f7a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

msgflo/msgflo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import haigha
2828
from haigha.connection import Connection as haigha_Connection
2929
from haigha.message import Message as haigha_Message
30-
except ImportError as e:
30+
except (ImportError, SyntaxError) as e:
3131
haigha = e
3232

3333
# MQTT

0 commit comments

Comments
 (0)