Skip to content

Commit a433102

Browse files
committed
using new exception definition
1 parent 17a9b32 commit a433102

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/fakerequests_advancedtest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@
5757
found = True
5858
except ValueError:
5959
pass
60-
except ImportError:
61-
raise Exception(f"Could not find the module {package} in your lib folder.")
60+
except Exception as e:
61+
raise ImportError(f"Could not find the module {package} in your lib folder.") from e
6262

6363
if found:
6464
print("Congratulations")

0 commit comments

Comments
 (0)