mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 11:55:27 +00:00
In general, it's better to use explicit flow control than to throw
and/or catch generic exceptions. Example:
try:
thing = d["key"]
except:
pass
This 1. catches an inspecific exception (probably KeyError), 2. can be
replaced with a check for ("key" is in d), and 3. can often be replaced
with d.get("key", some_default_value).
|
||
|---|---|---|
| .. | ||
| higwidgets | ||
| __init__.py | ||
| About.py | ||
| App.py | ||
| BugReport.py | ||
| CrashReport.py | ||
| DiffCompare.py | ||
| FileChoosers.py | ||
| FilterBar.py | ||
| Icons.py | ||
| MainWindow.py | ||
| NmapOutputProperties.py | ||
| NmapOutputViewer.py | ||
| OptionBuilder.py | ||
| Print.py | ||
| ProfileCombo.py | ||
| ProfileEditor.py | ||
| ProfileHelp.py | ||
| ScanHostDetailsPage.py | ||
| ScanHostsView.py | ||
| ScanInterface.py | ||
| ScanNmapOutputPage.py | ||
| ScanOpenPortsPage.py | ||
| ScanRunDetailsPage.py | ||
| ScanScanListPage.py | ||
| ScansListStore.py | ||
| ScanToolbar.py | ||
| ScriptInterface.py | ||
| SearchGUI.py | ||
| SearchWindow.py | ||
| TargetCombo.py | ||
| TopologyPage.py | ||