Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pattern/text/de/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

try:
MODULE = os.path.dirname(os.path.realpath(__file__))
except:
except Exception:
MODULE = ""

sys.path.insert(0, os.path.join(MODULE, "..", "..", "..", ".."))
Expand Down
2 changes: 1 addition & 1 deletion pattern/text/en/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

try:
MODULE = os.path.dirname(os.path.realpath(__file__))
except:
except Exception:
MODULE = ""

sys.path.insert(0, os.path.join(MODULE, "..", "..", "..", ".."))
Expand Down
6 changes: 3 additions & 3 deletions pattern/web/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,19 +95,19 @@
# If this module is used separately,
# a dict is used (i.e. this Python session only).
from .cache import Cache, cache, TMP
except:
except ImportError:
cache = {}

try:
from .imap import Mail, MailFolder, Message, GMAIL
from .imap import MailError, MailServiceError, MailLoginError, MailNotLoggedIn
from .imap import FROM, SUBJECT, DATE, BODY, ATTACHMENTS
except:
except ImportError:
pass

try:
MODULE = os.path.dirname(os.path.realpath(__file__))
except:
except Exception:
MODULE = ""

#### UNICODE #######################################################################################
Expand Down