Skip to content

Commit

Permalink
fix: Linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker committed Jul 5, 2019
1 parent 6c2c856 commit d014f7e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sentry_sdk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,10 @@ def safe_repr(value):


def filename_for_module(module, abs_path):
# type: (str, str) -> str
# type: (str, Optional[str]) -> Optional[str]
if abs_path is None:
return None

try:
if abs_path.endswith(".pyc"):
abs_path = abs_path[:-1]
Expand Down

0 comments on commit d014f7e

Please sign in to comment.