diff --git a/elpy/jedibackend.py b/elpy/jedibackend.py
index <HASH>..<HASH> 100644
--- a/elpy/jedibackend.py
+++ b/elpy/jedibackend.py
@@ -215,6 +215,12 @@ def run_with_debug(jedi, name, *args, **kwargs):
         # Bug in Python 2.6, see #275
         if isinstance(e, OSError) and e.errno == 13:
             return None
+        # Bug jedi#466
+        if (
+                isinstance(e, SyntaxError) and
+                "EOL while scanning string literal" in str(e)
+        ):
+            return None
 
         from jedi import debug
 
diff --git a/elpy/tests/support.py b/elpy/tests/support.py
index <HASH>..<HASH> 100644
--- a/elpy/tests/support.py
+++ b/elpy/tests/support.py
@@ -215,6 +215,14 @@ x._|_
 
         self.rpc(filename, source, offset)
 
+    def test_should_not_fail_on_literals(self):
+        # Bug #344 / jedi#466
+        source = u'lit = u"""\\\n# -*- coding: utf-8 -*-\n"""\n'
+        offset = 0
+        filename = self.project_file("project.py", source)
+
+        self.rpc(filename, source, offset)
+
 
 class RPCGetCompletionsTests(GenericRPCTests):
     METHOD = "rpc_get_completions"
Catch a SyntaxError from Jedi.

This is a workaround for a bug in Jedi.

Fixes #<I>.