Karim shoair commited on
Commit
243d94d
·
1 Parent(s): 90448ff

fix: fix for shell imported by mistake issue (#76)

Browse files
Files changed (1) hide show
  1. scrapling/core/shell.py +3 -3
scrapling/core/shell.py CHANGED
@@ -20,7 +20,6 @@ from logging import (
20
  getLevelName,
21
  )
22
 
23
- from IPython.terminal.embed import InteractiveShellEmbed
24
  from orjson import loads as json_loads, JSONDecodeError
25
 
26
  from scrapling import __version__
@@ -394,8 +393,7 @@ class CurlParser:
394
 
395
  else: # pragma: no cover
396
  log.error("Input must be a valid curl command string or a Request object.")
397
-
398
- return None
399
 
400
 
401
  def show_page_in_browser(page: Selector): # pragma: no cover
@@ -544,6 +542,8 @@ Type 'exit' or press Ctrl+D to exit.
544
 
545
  def start(self): # pragma: no cover
546
  """Start the interactive shell"""
 
 
547
  # Get our namespace with application objects
548
  namespace = self.get_namespace()
549
  ipython_shell = InteractiveShellEmbed(
 
20
  getLevelName,
21
  )
22
 
 
23
  from orjson import loads as json_loads, JSONDecodeError
24
 
25
  from scrapling import __version__
 
393
 
394
  else: # pragma: no cover
395
  log.error("Input must be a valid curl command string or a Request object.")
396
+ return None
 
397
 
398
 
399
  def show_page_in_browser(page: Selector): # pragma: no cover
 
542
 
543
  def start(self): # pragma: no cover
544
  """Start the interactive shell"""
545
+ from IPython.terminal.embed import InteractiveShellEmbed
546
+
547
  # Get our namespace with application objects
548
  namespace = self.get_namespace()
549
  ipython_shell = InteractiveShellEmbed(